How to reset phone default launcher programatically?
<blockquote>
  <p><strong>Possible Duplicate:</strong><br>
  <a href="http://stackoverflow.com/questions/6761553/clear-application-defaults">clear application defaults</a>  </p>
</blockquote>



<p>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.</p>

<p>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.</p>

<p>How can I reset launchers programatically so I add this code to an onclick?</p>
