I have a splash screen, a GridView, a simple text view.
On application start, I show the splash screen after which i call “finish()” to exit the activity and then start the “GridView” activity.
1st page: Grid View having 4 buttons, let's call it Home page..
2nd page: On click of 1st button, SAME grid view is called. But this time, there are 5 buttons.
3rd page: On click of 1st button, same grid view is called. This time there are 3 buttons.
4th page: On click of 1st button, it opens a simple text view, which has a text box and an "Home" button.
On home page, when i click the back button, I want the application to exit, or close…
But since the 1st, 2nd, 3rd page are still in the stack, I cannot just exit the application.
On my home screen, if i hit the “home” button of the tablet, the application exits. When i start the application again from the “Apps” option, the previously present screen is shown and not the splash screen!!!
I want it to show the splash screen.
Call new screen using
When you hit home button , application get resume. so next time it open the same page. for this use
on restarting , you can also reset flag using
Intent.FLAG_ACTIVITY_CLEAR_TOPif activity is in stack.