[android-developers] Re: How do I simulate the Home key programmatically?

2010-03-10 Thread Mike dg
The below code should work for triggering the home screen. Having said that, unless you have a custom device lacking home and back buttons, this is probably a bad idea. As is an exit button. And an exit button that doesn't really exit and just dumps you to the home screen is baffling. Those things

[android-developers] Re: How do I simulate the Home key programmatically?

2010-03-10 Thread Robert Green
If you want to exit, just use finish(). On Mar 10, 10:23 am, Wides erich.weid...@gmail.com wrote: Hi, I have a requirement to implement an Exit button in my Android application. I don't really care about killing the activity stack, I just want to have the same effect as pressing the Home