Hello,
I'm having a bit of trouble with an app I'm working on.
This is my first attempt at something on in a book and it's not working they way it should, or rather the way I want it too.
When I start the app it launches fine, and I can navigate the screens. However if I'm in another activity other than the main activity it starts to act weird. If I hit the home button and then return to the app it returns me to the activity I left on however when I hit the back button it returns me to the home screen instead of the main activity. What would cause this?
I have tried it with other apps and they work correctly.
Any help would be appreciated.
Back button not return to main activity
Page 1 of 12 Replies - 5496 Views - Last Post: 18 August 2011 - 06:11 PM
Replies To: Back button not return to main activity
#2
Re: Back button not return to main activity
Posted 18 August 2011 - 01:00 PM
Are you calling finish(); when you launch a new activity from your main activity? If so dont call finish(); as it will dispose of that activity and now the new activity that you launch is at the bottom of the stack instead of your main.
#3
Re: Back button not return to main activity
Posted 18 August 2011 - 06:11 PM
I figured it out. Somehow it got installed twice using the ADB. I force closed both instances and uninstalled one. It seems to be working fine now.
Thank you for you reply
Thank you for you reply
This post has been edited by JeremyC: 18 August 2011 - 06:12 PM
Page 1 of 1
|
|

New Topic/Question
Reply



MultiQuote




|