title: How to make android app as the default launcher on a tablet
body: <p>I am working on a kiosk mode application,wherein I want my app to work as the default launcher,instead of the android launcher.On device reboot my app should pop up as the default launcher.For the same,I have created an app to act as a launcher for a kiosk mode application running on an android tablet namely iBall 3G7171 HD7(4.2.2).In the manifest I have given the relevant permissions as follows.</p>
  
  <pre><code>&lt;activity
      android:name="com.abc.Main"
      android:label="@string/app_name"
      android:launchMode="singleTop"
      android:screenOrientation="landscape"&gt;
  
      &lt;intent-filter&gt;
          &lt;action android:name="android.intent.action.MAIN" /&gt;
          &lt;!-- The following two intent-filters are the key to set homescreen --&gt;
          &lt;category android:name="android.intent.category.HOME" /&gt;
          &lt;category android:name="android.intent.category.DEFAULT" /&gt;                 
      &lt;/intent-filter&gt;
  
  &lt;/activity&gt;
  </code></pre>
  
  <p>While I run this code on my samsung s2, on reboot this app is launched as the launcher app and works as expected.<b>However,when I run it on my tablet</b> I see that the app is not launched as the launcher app on device reboot,instead its the default android launcher that pops up.</p>
  
  <p><b>What I tried :</b> I listened to the BOOT COMPLETE intent to launch my launcher app.But the problem here is that the BOOT COMPLETE intent is fired after about 5 seconds,during which the default android launcher shows up,post which my launcher app is called.I do not want it to work this way,hence the approach of listening to boot complete broadcast won't work for my case.</p>
  
  <p><b>What I want</b> : Is to launch my launcher app immediately when my device reboots.
  What is it that I am missing/doing wrong in my current code.Any help would be appreciated.Many thanks !</p>