AFAIK, android applications are activity based. Based on ur requirement and ur judgment, u shud be able to distinguish how many activities are required. Just to clarify things, its not good to have an application with "numerous" views, switched. Its normal to have several activities with fewer number of views (common ones that u r talking abt). But make sure u manage the activities properly, i.e., finish() the ones u dont need to trace back, and not overload the activity stack.
Regards, Saurav Mukherjee. On Sat, Sep 12, 2009 at 2:19 AM, Gopal Biyani <[email protected]> wrote: > Hello Guys, > I have confusions over View and Activity which one we should use. In my > application there are lots of different screens with lots of different > functionalities. In some of the screen they share common task bar and in > another screen they have different task bar and nothing in common. > > At present, I have only single activity and what I am doing, I just adding > and removing view from the main layout to show different screens. > > Reason for doing this is according to document Designing for Performance, > it says to > Launch an empty activity > 3,000,000 > Inflate 1 LinearLayout containing 6 TextView Objects 135,000 > > Then, I was going through the open project Shelves, in which Romain Guy > used more then one activity,so, it just confused me. > > Any suggestions will be highly appreciable. > > Thanks > > Regards > Gopal > > > > > > --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---

