I guess that it not so simple.

This erros is for 11 elements. I normally declare my elements like this:

*public class A_Home extends Activity{*
*
*
*TextView x;*
*
*
*@Override*
* public void onCreate(Bundle savedInstanceState) {*
* super.onCreate(savedInstanceState);*
* setContentView(R.layout.home);*
*
*
*x = (TextView) findViewById(R.id.x);*
*
*
*}*
*
*
*methods ...*


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.

Waiting help, thanks.




On Wed, Jun 8, 2011 at 11:50 AM, TreKing <[email protected]> wrote:

> On Wed, Jun 8, 2011 at 9:48 AM, Diogo Salaberri <[email protected]>wrote:
>
>> Anyone can help me ?
>
>
> Your debugger and LogCat can. Use them to figure out what's NULL - then
> make it not null.
>
>
> -------------------------------------------------------------------------------------------------
> 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 [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




-- 
Atenciosamente;
Diogo Bonoto Salaberri
Bacharel em Ciência da Computação - UFPel

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

Reply via email to