How Do I Declare My Activity As Launcher?
I am trying to build a kind of custom lockscreen. In order to achieve that I need to disable the HOME button. From this post I understand that I can achieve that by declaring my Ac
Solution 1:
Move the intent filter to your activity
<activity
android:name=".LockScreen"
android:clearTaskOnLaunch="true"
android:label="@string/activity_name"
android:launchMode="singleInstance"
android:theme="@android:style/Theme.NoTitleBar" >
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
Post a Comment for "How Do I Declare My Activity As Launcher?"