logo       

[android-beginners] Re: Command for exit froma an application: msg#01238

AndroidBeginners

Subject: [android-beginners] Re: Command for exit froma an application


Lorenz wrote:
> I'm realizing an application in Android .I want to use a botton(like
> "EXIT") to exit from this application, namely when I push this botton
> I want return in the main menu of the phone.. is there any way to do
> this action?

You can call finish() at any point in your activity to close up that
activity, and if you do that from the first activity, it will return the
user to the home screen.

--
Mark Murphy (a Commons Guy)
http://commonsware.com | http://twitter.com/commonsguy

Need help for your Android OSS project? http://wiki.andmob.org/hado

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Android Beginners" group.
To post to this group, send email to android-beginners@xxxxxxxxxxxxxxxx
To unsubscribe from this group, send email to
android-beginners-unsubscribe@xxxxxxxxxxxxxxxx
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en
-~----------~----~----~----~------~----~------~--~---

<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

News | Mail Home | sitemap | FAQ | advertise