Btw..for others on dark, there are two great tutorials about sthat
kind of application. One is from Mark http://commonsware.com/Android/excerpt.pdf
and one I found toady at http://www.softwarepassion.com/?p=189 .
Second one do mostly what I tried with my poor java in my code.

On Oct 4, 5:34 pm, vorcigernix <vorciger...@gmail.com> wrote:
> Thanks, now it is working :)
>
> On Oct 4, 2:27 pm, "Mark Murphy" <mmur...@commonsware.com> wrote:
>
> > > 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 android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to