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

2010-03-10 Thread Wides
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 button. So that application state is saved and can be returned to. I've tried making a call to

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

2010-03-10 Thread Romain Guy
You cannot simulate a press on the Home key. On Wed, Mar 10, 2010 at 8: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

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

2010-03-10 Thread Mark Murphy
Wides wrote: Hi, I have a requirement to implement an Exit button in my Android application. Tell whoever gave you that requirement to eliminate the requirement. http://www.androidguys.com/2010/01/13/android-development-its-just-different/ I don't really care about killing the activity

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

2010-03-10 Thread TreKing
On Wed, Mar 10, 2010 at 10:23 AM, Wides erich.weid...@gmail.com wrote: I just want to have the same effect as pressing the Home button. So that application state is saved and can be returned to. What's wrong with just finish()'ing your activities? If I hit Exit on your app and instead of