You could call finish() on your activity passing something back to the parent activity. You could launch an intent to send them back to the launcher, but more importantly, is that really the ideal navigation paradigm?
Android has three system level affordances for navigation, back, home, context switch. Is it really best to circumvent the usage of the back or home button? Most users will either spam the back button or hit the home button to exit. It is possible that you actually want to exit, but it's not likely that would actually be the best option. If it is, you can research the two options I mentioned at the beginning, but I would argue that you forget about that and just let the user use the already well known navigation affordances to exit. On Friday, September 6, 2013 3:46:54 PM UTC-5, ashish wrote: > > Hi, > > what is best why to exit android application ? > i found difficulty to exit android application in some cases. > e.g i move from Activity A to B now how exit the application. > -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en --- You received this message because you are subscribed to the Google Groups "Android Developers" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/groups/opt_out.

