-1

is there a way of preventing a user from ending my app using the task switcher? Either by removing my app from the task switcher, or disabling the task switcher altogether? My app is a launcher, and when the user ends the task, it reverts back to the stock launcher, which is not desirable behavior.

Thanks.

user1118764
  • 9,255
  • 18
  • 61
  • 113

2 Answers2

0

Try the Intent.FLAG_ACTIVITY_NO_HISTORY when starting your activity should remove your activity from the tasks - not sure how it'll behave with a launcher.

Raanan
  • 4,777
  • 27
  • 47
0

Please take a look at this previously asked question:

how to keep my launcher out of being kill by os

Also some tutorial links, just in case:

xda: Create your own Android Launcher (Video Series)

Tutsplus: build a custom launcher on android

I hope this helps.

Community
  • 1
  • 1
Robbe Roels
  • 195
  • 4
  • 11