[android-developers] Re: Sleep on END_CALL keycode, but terminate on HOME?

2009-01-26 Thread Guillaume Perrot
HOME calls onPause then onStop most of the time. BACK do the same but also calls onDestroy after onStop. The Acitivity.finish() function do the same as the BACK button. You can try the following (I didn't test it): You can have a boolean flag that your set when you press your button. Then in

[android-developers] Re: Sleep on END_CALL keycode, but terminate on HOME?

2009-01-26 Thread Guillaume Perrot
HOME calls onPause then onStop most of the time. BACK do the same but also calls onDestroy after onStop (if you didn't override the BACK button behavior and no dialog or menu is being displayed). The Acitivity.finish() function do the same as the BACK button. You can try the following (I didn't

[android-developers] Re: Sleep on END_CALL keycode, but terminate on HOME?

2009-01-26 Thread g1bb
That looks like it's going to work great. Thanks, Guillaume! On Jan 26, 3:55 am, Guillaume Perrot guillaume.p...@gmail.com wrote: HOME calls onPause then onStop most of the time. BACK do the same but also calls onDestroy after onStop (if you didn't override the BACK button behavior and no