Friday, July 1, 2011

[android-developers] Re: Exit function in android application

If I understand you right, you are trying to exit your application.
You may try implementing a simple logic (e.g. an ExitManager class
where the activities register themselves in their onCreate and
deregister themselves in their onDestroy) which calls the finish()
method of all your activities. Calling the finish method of all
activities would ensure that they are gracefully destroyed. If there
is a better and more concise alternative, I would be happy to learn
it.

----------
Ali Chousein
Geo-Filtered Assistant
http://geo-filtered-assistant.blogspot.com/


On Jul 1, 6:14 am, nageswara rao rajana <nagu.raj...@gmail.com> wrote:
> Hi,
>
>      In application i have 4 activities, and also exit in my menu option if
> i click exit in any activity it is destroying the current activity
>      and displaying the previous activity. But my requirement is if  i click
> exit in activity the application should be killed and should
>      display the home. Please help me its urgent.
>
>   Thanking you,
>   Nagu.

--
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

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home


Real Estate