Android, unlimited actions in the project life cycle and activity!

A few days ago, I published my application on the Android Marketplace, and a question arose during the development and development of the application. This question relates to limiting or limiting the number of activities.

For example, my application includes 37 activities. It's so much? I want to know about a game like Angry Birds, which has over 200 levels, has 200 activities? !!

My next question is: suppose I am developing an application that includes 100 activities. The user starts the application and gos in the last activity (for example, reading a book). If the user wants to close the application, what should he do? Press the back key 100 times on your device? If I want to put a close button (to help the user) in the options menu, do I need to repeat it for each action? because, as far as I know, each type of activity has its own menu.

If I click the close button in the last step, and the user clicks on it, the program closes. What will happen to the other 99 activities? do they still exist on the stack? or When I close the application, all actions associated with this package will be removed from the stack.

I read the action page published by Android , but I could not find the answers.

Sorry if the questions above are silly questions :) Thank you

+3
source share
4 answers

In the case of Anry Bairds, I doubt that they have 100 activities, I think that they only have one (or maybe a couple) for the levels, and the other for the welcome screen - different levels probably load depending on some parameter that was passed into action.

As for how to handle 100 loaded actions, first of all, it is very likely that the system will process the old ones at the bottom of the stack before you move on to the 100th action. If not, then yes, your user will have to click on 100 actions.

"", onKeyDown().

, , , .

+2
+1

, -, angrybirds, , OpenGL ES, .

-, 200 , , , , . , ? , . , , "":-)

+1

Angry Birds, , OpenGL ES, , RelativeLayout

that, as they say, you can have an unlimited number of actions, the only problem is how much space your application will take, why any user wants to navigate such a reliable program on their mobile device and how much RAM you use and effectively manage your actions.

0
source

All Articles