I think you need to step back for a bit and determine why you feel you > want two activities, instead of one activity with two (or more) UI modes, > or one activity and a dialog, or something. >
Well, I don't need multiple activities, What I need is: each class must implement its own UI ( setContentView, listeners etc + its own menus). inter class dependence must be minimum because these classes are going to be written by different people. This is my basic requirement. I am willing to do it by the best way, Activity or not. Right now the best I can think of for a compromised solution is to make a function call to the class (from inside the onPrepare.. function)depending on the current view from the base Activity, let it do what it wants to the menu and return it. (only 1 class needs to extend Activity for this). Any other way? (I hope I'm clear, if not please ask me to explain!) 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 -~----------~----~----~----~------~----~------~--~---

