On Wed, Jun 8, 2011 at 10:01 AM, Diogo Salaberri <caxix...@gmail.com> wrote:

> I guess that it not so simple.
>

Sure it is - step through your debugger and print out log statements. At
some point something is null. Find out what that is.


> I normally use that "x" TextView inside the onCreate() and after ( methods
> ); But, i don't know how, this look like loosing the refference for my
> declarations.
>

If you're getting NULL from findViewById then your layout is setup wrong so
double check that.
If not but your variable is NULL afterward at some point then, again, use
your debugger and logcat to find out when and where it's getting set to
null. Then don't do that.

-------------------------------------------------------------------------------------------------
TreKing <http://sites.google.com/site/rezmobileapps/treking> - Chicago
transit tracking app for Android-powered devices

-- 
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