title: How to reset default launcher/home screen replacement?
body: <p>When the user clicks Home he is given the choice of launcher and he can also choose whether to set it as default. The problem is that afterwards it's hard to change it again.</p>
  
  <p>To fix this I added a "Reset preferred launcher" that triggers this:</p>
  
  <pre><code>getPackageManager().clearPackagePreferredActivities(getPackageName());
  </code></pre>
  
  <p>However this line only resets the preferred launcher if he has chosen my launcher.  I need a snippet that clears the preferred launcher whatever it is, so next time the user clicks home he is given the options again.</p>