views:

62

answers:

2

Hi,

How could I kill all the Activiies of my application ?

I try using this.finish() but it just kill one activities.

In fact, I would like when the user touch the button BACk (in only one of the activities), the application do the same as he touch HOME Button

+1  A: 

This has been discussed many times before. Essentially there's no easy way, and there's not supposed to be. Users press Home to quit your app (as you have pointed out).

fredley
+1  A: 

You can set android:noHistory="true" for all your activities at AndroidManifest.xml. Hence they will not place themselves onto history stack and back button will bring you to the home screen.

Konstantin Burov