Ok Mark thanks, but I noticed that when I press "esc"(in my development machine) from the emulator the application that it is runnig is killed and the control returns in the home screen, so is there a way to link some actions with the botton "esc" without call finish()??.
On Jul 31, 2:23 pm, Mark Murphy <[email protected]> wrote: > 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 [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-beginners?hl=en -~----------~----~----~----~------~----~------~--~---

