What does "Android 2.2 Google Maps" mean? Anyway, the default implementation of Activity when it gets the back key is to call finish(). If it is not finishing, you are overriding this behavior or doing something else to change it.
On Fri, Jun 29, 2012 at 9:51 AM, icaro...@gmail.com <icaro...@gmail.com>wrote: > Hi guys, > > I have an activity (main) that never is destroyed if I navigate through > others activities. > It DOES kill the app when I only navigate to the main activity. > > Example: > > > 1) "Main activity" > Back Button Pressed > Kill > > 2) "Main activity" > Activity 1 > When I press back button at "Activity 1", naturally the app goes back to > Main activity (stack). NORMAL > But already in "Main activity" when I press the back button, the app goes > back to "Activity 1" in an infinite loop. > > I already checked if I have some some method falling into an infinite > loop, but until now, everything is ok. > I also tried to force the kill, calling "finish()", "destroy()", "android. > os.Process.killProcess(android.os.Process.myPid())", but all was in vain. > > Specs: Android 2.2 + Google Maps > > Thanks, > > Icaro Camelo > *Software Engineer* > **Microsoft Certified Professional - .NET Framework 2.0 > Microsoft Certified Technology Specialist - Windows and Web > Applications 3.5 > > * > E-mail: icaro...@gmail.com > Mobile: +55 (85) 8820-9009 > Skype: icarocamelo* > > -- > You received this message because you are subscribed to the Google > Groups "Android Developers" group. > To post to this group, send email to android-developers@googlegroups.com > To unsubscribe from this group, send email to > android-developers+unsubscr...@googlegroups.com > For more options, visit this group at > http://groups.google.com/group/android-developers?hl=en -- Dianne Hackborn Android framework engineer hack...@android.com Note: please don't send private questions to me, as I don't have time to provide private support, and so won't reply to such e-mails. All such questions should be posted on public forums, where I and others can see and answer them. -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en