Monday, September 9, 2013

[android-developers] Re: android how to exit the application?

it depends on how you structure your application and how you expect it to behave.
using StartActivityForResult and then passing a flag to finish previous activities (like Alex suggested) is very simple to implement and manage

I myself am more fond of using an entrance activity to the app and using it to finish the entire stack (SingleInstance activity launched with a ClearTop flag and told to finish)


On Friday, September 6, 2013 11:46:54 PM UTC+3, 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 android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscribe@googlegroups.com
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 android-developers+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home


Real Estate