Hi,

i have a source code like this and when i launch the emulator, it
creates a fatal error: null pointer exception...

i've try to comment some parts of my code and the problem comes from:
b.setOnClickListener(test);

The code just before is this:

OnClickListener  test = new OnClickListener()
    {
           public void onClick(View v)
        {
            //....
                  }

};
Button b= (Button)findViewById(R.id.b);

I don't understand why it doesn't work... it sems..normal?

Can you help me?

--~--~---------~--~----~------------~-------~--~----~
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]
Announcing the new M5 SDK!
http://android-developers.blogspot.com/2008/02/android-sdk-m5-rc14-now-available.html
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to