Assume that the application has two activities, namely Activity1 and Activity2. Activity1 is responsible to load some bunch of text and audio files. During the loading process Activity1 disposes progress dialog. After successfully loading, then comes the Activity2. In my application Activity1 must run only once. If the user presses back button on Activity2,then application must terminate. But what I have seen that, Activity1 comes to the screen if the back button is pressed. How can I achieve this? Is there any way to terminate application in the case of user presses back button on Activity2?
Any help will be appreciated.
Thanks