android - Weird Home button behavior -


After pressing the hard home button, I am facing strange behavior of my application type. When you press Home, it's all right - My app goes to the background, shows the Home screen. But if you try to select your app in the main menu or it works in the list of final tasks as if it had not already started and you did not show past activity - it just starts with scratch , That is, displays the splash screen and initiates the next related activities. In addition, the older activities of this app remain on the stack of activities, and the app's The LA example is not eliminated - so if you press back for some time you will run in those activities which were undoubtedly started during the last session with the splash screen activity with my app "android.intent.action. MAIN "filter and" android.intent.category.LAUNCHER "category. The strange thing is that all this is the fact that I do not have to stop any back key hit, or there is no override but I do not have any methods to stop or stop the methods of the Android app's life cycle. - I was convinced that when you hit home an app just goes to the background, and when you select it later in the menu - it just opens and does not start again (of course, until the app maniffe The goods or related methods mentioned in St have not been overwritten or otherwise). I also tested it for some other lifecycle incidents - like changing orientation or flipping the hard keyboard - and none of them was inspired for such strange results. It appears that the problem occurs when you try to start the app from the main application or from the last applications menu. I hope you will be able to help me find a solution or find some advice about where to focus on.

You can set the android: launchMode =

For more information on the launch mode feature

"Single Task" in itemprop = "text" "Fair File" in your Launcher Activity

Note that:

The default mode is "standard".

and:

Every time there is a new intention for "standard" activity, then to create a new example of the class to answer that effect. has gone. / P>


Comments

Popular posts from this blog

oracle - The fastest way to check if some records in a database table? -

php - multilevel menu with multilevel array -

jQuery UI: Datepicker month format -