On Sun, Mar 6, 2016 at 5:39 PM, Draad Ultran <[email protected]> wrote:
> I understand how to start an activity, but I have trouble understand when > I should. > What I mean is, when should I consider creating a new Activity in my > application instead of updating the one I'm currently using? > An Activity should represent one logical screen and / or operation. If you take some action on a screen and it should navigate you to another screen which presents a different task then what you were doing, that should be a new Activity. For example, if were looking at a list of things and clicking on one should show you a detail screen for the selected item, it would be odd to use the same activity, both from an engineering perspective (too much responsibility for one class) and from a user perspective (if I hit back, I'll lose both the details and the list screens). ------------------------------------------------------------------------------------------------- TreKing <http://sites.google.com/site/rezmobileapps/treking> - Chicago transit tracking app for Android-powered devices -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at https://groups.google.com/group/android-developers. To view this discussion on the web visit https://groups.google.com/d/msgid/android-developers/CANCScgj1fPPHveEW8TEJ4Gj7HnA3y3iOtCz6LUy12aTa%3DO8ekw%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.

