> I am getting error at > > stext.setText(sdf.format(cal.getTime()).toString()+ " chyba"); > > where it ends on null pointer exception. I tried to add: > > setContentView(R.layout.main); > > which required to add a listview named android:list. Now...it works > same way as before, it ends on same null pointer exception :)
Your setContentView() call needs to precede your findViewById() call to get at your R.id.statustext widget. -- Mark Murphy (a Commons Guy) http://commonsware.com Android App Developer Books: http://commonsware.com/books.html --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~----------~----~----~----~------~----~------~--~---

