title: How do i declare my Activity as Launcher?
body: <p>I am trying to build a kind of custom lockscreen.</p>
  
  <p>In order to achieve that I need to disable the HOME button.</p>
  
  <p>From <a href="https://stackoverflow.com/questions/12436190/block-home-button-in-ice-cream-sandwich-and-jelly-bean">this post</a> I understand that I can achieve that by declaring my Activity as a Launcher.</p>
  
  <p>Please how do I do that? (it is in the Manifest obviously)
  This is the Manifest.
  The Activity that "acts" as a lockscreen is <strong>LockScreen</strong></p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt;manifest xmlns:android="http://schemas.android.com/apk/res/android"
  package="com.appengine.paranoid_android.lost"
  android:versionCode="2"
  android:versionName="1.1" &gt;
  
  &lt;application
      android:icon="@drawable/ic_launcher"
      android:label="@string/app_name" &gt;
      &lt;activity
          android:name=".InfoSetup"
          android:clearTaskOnLaunch="true"
          android:label="@string/activity_name"
          android:launchMode="singleTask" &gt;
          &lt;intent-filter&gt;
              &lt;action android:name="android.intent.action.MAIN" /&gt;
  
              &lt;category android:name="android.intent.category.LAUNCHER" /&gt;
          &lt;/intent-filter&gt;
      &lt;/activity&gt;
      &lt;activity
          android:name=".LockScreen"
          android:clearTaskOnLaunch="true"
          android:label="@string/activity_name"
          android:launchMode="singleInstance"
          android:theme="@android:style/Theme.NoTitleBar" &gt;
          &lt;service
              android:name=".InfoService"
              android:label="@string/service_name" /&gt;
  
          &lt;receiver android:name="com.appengine.paranoid_android.lost.BootCompleteReceiver" &gt;
              &lt;intent-filter&gt;
                  &lt;action android:name="android.intent.action.BOOT_COMPLETED" /&gt;
              &lt;/intent-filter&gt;
              &lt;intent-filter&gt;
                  &lt;action android:name="android.intent.action.PACKAGE_ADDED" /&gt;
                  &lt;action android:name="android.intent.action.PACKAGE_CHANGED" /&gt;
                  &lt;action android:name="android.intent.action.PACKAGE_REMOVED" /&gt;
  
                  &lt;data android:scheme="package" /&gt;
              &lt;/intent-filter&gt;
          &lt;/receiver&gt;
      &lt;/activity&gt;
  &lt;/application&gt;
  
  &lt;uses-permission android:name="android.permission.RECEIVE_BOOT_COMPLETED" /&gt;
  &lt;uses-permission android:name="android.permission.WRITE_SETTINGS" /&gt;
  &lt;uses-permission android:name="android.permission.READ_CONTACTS" /&gt;
  &lt;uses-permission android:name="android.permission.DISABLE_KEYGUARD" /&gt;
  &lt;!-- &lt;uses-permission android:name="android.permission.DISABLE_KEYGUARD"/&gt; --&gt;
  &lt;uses-sdk
      android:minSdkVersion="8"
      android:targetSdkVersion="17" &gt;
  &lt;/uses-sdk&gt;
  </code></pre>
  
  <p></p>