1

How to reset phone default launcher programatically?

view story
linux-howto

http://stackoverflow.com – I built a home screen replacement app. The first time users click home after installing it they see a window with all home screen apps and can choose one to be the default app for the home intent. Once this action is done, to my knowledge the only way to reset launchers is to go to the app settings and click clear all data. It's not very easy to do and I don't want my users to delete all my app's data just to remove it as a launcher. How can I reset launchers programatically so I add this code to an onclick? (HowTos)