I am having an issue related to the home key. When I press the home key the current activity gets hidden, but when I start the executable again, it starts at the first screen. I have overidden all methods (onSaveInstanceState, onPause, onStop onResume) but there are still issues. What is the right way to handle this?
When I press the home button I am storing the widget state in a database and when I again start the exectable I am checking the database state and starting the new Intent that was saved when user pressed the home button. Is this the right way to do that, as I am facing the problem when user does the same and again presses the back button, there is already on intent available in the activity stack.