I was tinkering around with it and realized that just extending the
Activity does not give the exception
What I do is:

1> A class that extends Activity starts executing.
2> it instantiates another class. The instantiated class does not take
any parameters in the constructor.
3> Inside the constructor it does a this.setContentView - this seems
to be generating the exception, because if I remove this the program
works.

Now I changed it a bit:

The constructor takes an activity object. then inside the constructor,
I do activity.setContentView . I don't think the onCreateOptionsMenu
method is executing even though I am not getting any exception.


NOTE: Now both classes are extending Activity.

Sylvester
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Android Beginners" 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-beginners?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to