May 16th, 2010, 01:41 PM
|
#1 (permalink)
|
|
Junior Member
Join Date: May 2010
Posts: 15
Device(s):
Thanks: 0
Thanked 0 Times in 0 Posts
|
Activity vs Layout
I couldn't find any discussion about this anywhere. Just wondering what the 'best practice is'.
I am making a little game - it has 4 pretty standard screens
1. Main menu
2. Game screen
3. Help screen
4. Hi scores screen
So my question is - which is the best approach.
1. Make each screen a separate activity and launch each one from the main menu activity
2. Make each screen a layout and change setContentView in the main activity
I guess a lot rests on the best practice for these things. Like - if you hit the back button on your android device, should a game exit completely, or should it return to the main menu first..so you have to press back twice to exit?
|
|
|