Generally speaking, it's better to design for simplicity and maintainability of code rather than optimize for speed from the outset, especially in the case (like this one) where either approach works. There is no Android rule-of-thumb that says "don't use multiple activities", although I've seen a number of people on this list get that impression from the documentation you quote. Lots of Android apps have many Activities and that's fine.
So in your case I would recommend that at least for the screens that share nothing in common, use different activities. Yusuf Saib Android ·T· · ·Mobile· stick together The views, opinions and statements in this email are those of the author solely in their individual capacity, and do not necessarily represent those of T-Mobile USA, Inc. On Sep 11, 1:49 pm, 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 -~----------~----~----~----~------~----~------~--~---

