Android device Back Button close the app not move to Main Activity?

Ya Mike I have delete that line also.. no more finish() find even I search the entire app, 100% sure no finish() method. – Sam Apr 19 at 17:03 as you said that you comment it now... so basically it was there... try to clean and build your app, sometimes it doesn't update the apk... just a guess.. :) – Farhan Apr 19 at 17:38 your correct I deleted the target folder and did clean build it's worked. – Sam Apr 30 at 16:50.

Actually, it should not happen unless you are calling finish() because android works with activity stack and as you keep pressing device back button, it calls previous activity on stack.

Well I read that post as well, still I can't figure it out why it's not open the Main Activity. I haven't override the back button method even, any activity filter might cause this problem... – Sam Apr 19 at 17:00 Try deploying your application again or post your code possibly. – yogsma Apr 19 at 17:04.

The above code was run from the main activity. Now in my new activity which is called by the main activity, I have a back button. When I click on this back button I want my new activity to close and it must go back to the original main activity.

I have tried calling super.finish() and just finish() (from the new activity) but this then closes my entire application (including my main activity). How can I just close the activity that is currently in focus, and then return to the main activity? The fact that my phones back button also closes my entire app, leads me to think that I have started up the secondary activity incorrectly?

I created a Settings Activity that uses the same manifest code and the same code to Start the activity. For the settings Activity when I push the back button, it returns to the Main activity. With the activity mentioned above in the main Question it simply exits my entire app.

So the problem doesn't seem to be with the code to finish the activity but the activity its self.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions