Have you tried android:clearTaskOnLaunch on your base activity in the AndroidManifest.xml?
http://developer.android.com/guide/topics/manifest/activity-element.html#clear Steven Studio LFP http://www.studio-lfp.com On Thursday, October 13, 2011 7:37:52 AM UTC-5, P B Lal wrote: > > Dear All Experts, > > > I have developed my own application but I am unable to close it through > coding. > I have tried following ways > (a) System.exit(0) > (b) android.os.Process.killProcess(android.os.Process.myPid()); > (c) super.destroy() > (d) this.finish(); > (e) <Mycurrentactivityclassname>.this.getParent().finish(); > > > but these all code restarts my application. Anybody's help will be > appreciated. > If I press the back button it seems that it has closed but again it is > started after a fraction of seconds. > If I press home key , it got the android deskop screen but when I see it is > in task manager list, > but it does not appear in the running process setting menu of mobile. > But whenever I run the application again it appears in the same state when I > had pressed home button. > > > > > Thanks & Regards > Prashant B Lal > -- 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