<activity
android:name=".RegisterActivity"
android:screenOrientation="portrait"
android:noHistory="true"
android:launchMode= "singleTask"
android:theme="@style/AppThemeHome">
<intent-filter>
<action android:name="android.intent.action.MAIN"/>
<category android:name="android.intent.category.LAUNCHER"/>
</intent-filter>
</activity>
android:name=".RegisterActivity"
android:screenOrientation="portrait"
android:noHistory="true"
android:launchMode= "singleTask"
android:theme="@style/AppThemeHome">
<intent-filter>
<action android:name="android.intent.action.MAIN"/>
<category android:name="android.intent.category.LAUNCHER"/>
</intent-filter>
</activity>
Moved the below intent filters from RegisterActivity to MainActivity.
<action android:name="android.intent.action.MAIN"/>
<category android:name="android.intent.category.LAUNCHER"/>
<category android:name="android.intent.category.LAUNCHER"/>
After moving the above two intent decleration to the MainActivity and my launcher icon stop showing.
<activity android:name=".MainActivity"
android:launchMode= "singleTask"
android:screenOrientation="portrait"
android:theme="@style/AppThemeHome">
<intent-filter>
<action android:name="android.intent.action.MAIN"/>
<category android:name="android.intent.category.LAUNCHER"/>
<category android:name="android.intent.category.DEFAULT"/>
<action android:name="android.intent.action.VIEW"/>
<category android:name="android.intent.category.BROWSABLE"/>
<data android:mimeType="text/plain"/>
<data
android:host="example.com"
android:scheme="https"/>
</intent-filter>
</activity>
android:launchMode= "singleTask"
android:screenOrientation="portrait"
android:theme="@style/AppThemeHome">
<intent-filter>
<action android:name="android.intent.action.MAIN"/>
<category android:name="android.intent.category.LAUNCHER"/>
<category android:name="android.intent.category.DEFAULT"/>
<action android:name="android.intent.action.VIEW"/>
<category android:name="android.intent.category.BROWSABLE"/>
<data android:mimeType="text/plain"/>
<data
android:host="example.com"
android:scheme="https"/>
</intent-filter>
</activity>
Solved after
With this declaration in the manifest, the app is installed but the app icon is not installed, regardless application attributes icon and roundicon are correct or not.
Action Main need to be on its own xml element like this:
<activity android:name=".MainActivity"
android:launchMode= "singleTask"
android:screenOrientation="portrait"
android:theme="@style/AppThemeHome">
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
<intent-filter>
<category android:name="android.intent.category.DEFAULT"/>
<action android:name="android.intent.action.VIEW"/>
<category android:name="android.intent.category.BROWSABLE"/>
<data android:mimeType="text/plain"/>
<data
android:host="example.com"
android:scheme="https"/>
</intent-filter>
</activity>
android:launchMode= "singleTask"
android:screenOrientation="portrait"
android:theme="@style/AppThemeHome">
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
<intent-filter>
<category android:name="android.intent.category.DEFAULT"/>
<action android:name="android.intent.action.VIEW"/>
<category android:name="android.intent.category.BROWSABLE"/>
<data android:mimeType="text/plain"/>
<data
android:host="example.com"
android:scheme="https"/>
</intent-filter>
</activity>
No comments:
Post a Comment