Thursday, September 29, 2011

Kill all activities when HOME key is pressed android

Kill all activities when HOME key is pressed android
Set android:clearTaskOnlaunch="true" on the activity launched from the home screen.
You might also check some of the other attributes you can specify on activity, to tweak it's behavior a bit more.
On main activity add:
    android:launchMode="singleTask" android:clearTaskOnLaunch="true"
android:finishOnTaskLaunch="true"

Check out this may be help you

Related Posts Plugin for WordPress, Blogger...