Hello, I had same issue with closing entire application and found following solution, which works fine for me:
http://softteco.blogspot.com/2011/07/how-to-close-activity-and-all-children.html Please let me know if you have any questions. Best regards, Yahor On Sun, Aug 14, 2011 at 11:10 AM, Andry Jiang <[email protected]> wrote: > Perhaps you could try creating your own BroadcastReceiver on every Activity > that will exit its Activity upon receiving broadcasted message sent from the > last page when user choose to exit the app. > > I haven't tried it myself but I hope it gives you a clue to solve your > problem. Otherwise you should call finish on every Activity upon starting > another Activity and handle starting previous Activity when user press a > Back key > > > On Fri, Aug 12, 2011 at 10:17 PM, ndiiie90 <[email protected]> wrote: > >> Hi again Mark, >> >> I must close the entire app, because my app is a commerce application, >> that has its own flow until the payment, and user can't go back to >> previous screen, so whenever user has reached the last page, there are >> options to exit the app or go back to menu again..have any idea? >> >> >> Thanks, >> >> Rendy >> >> On Aug 11, 7:49 pm, Mark Murphy <[email protected]> wrote: >> > On Wed, Aug 10, 2011 at 10:55 PM, ndiiie 90 <[email protected]> wrote: >> > > how to close entire app? >> > >> > You don't, any more than you "close entire" Web app. Android will >> > terminate your process eventually, just leave it alone. >> > >> > -- >> > Mark Murphy (a Commons Guy)http://commonsware.com| >> http://github.com/commonsguyhttp://commonsware.com/blog|http://twitter.com/commonsguy >> > >> > _The Busy Coder's Guide to Android Development_ Version 3.6 Available! >> >> -- >> 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 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 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

