Skip to content

[Android] App does not open when changing to default icon #1

@marifdev

Description

@marifdev

When I changed the icon from a custom one to the default one, it opened the app settings instead of the app itself.

I did all the settings in the AndroidManifest file as mentioned in the README.

To fix this,
<activity-alias android:name=".MainActivityDefault" android:enabled="true" android:exported="true" android:icon="@mipmap/ic_launcher_default" android:targetActivity=".MainActivity"> <intent-filter> <action android:name="android.intent.action.MAIN" /> <category android:name="android.intent.category.LAUNCHER" /> </intent-filter> </activity-alias>

I added the LAUNCHER category in the alias with the same as the others. I mean
<category android:name="android.intent.category.LAUNCHER" />

With this, it works as it should. I am not sure why it is asked to remove this for the default one, but I think it should not.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions