Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Android Change Icon Bugs #48

Open
Mohamed-ZiBox opened this issue Dec 18, 2023 · 3 comments
Open

Android Change Icon Bugs #48

Mohamed-ZiBox opened this issue Dec 18, 2023 · 3 comments
Labels
android bug Something isn't working

Comments

@Mohamed-ZiBox
Copy link

When I change the app icon on my code, the app closed show App Keeps Stopping message, but after closing app icon changes.

Screenshot 2023-12-18 141718

@johnborges
Copy link
Collaborator

johnborges commented Dec 18, 2023

@Mohamed-ZiBox Can you provide more info? OS version, device, ext...

@johnborges johnborges added bug Something isn't working android labels Dec 18, 2023
@Mohamed-ZiBox
Copy link
Author

Mohamed-ZiBox commented Dec 19, 2023

Android Version: 13
Devices: Android emulator (v13), Poco X3 Pro (v13), BlackView Tab 16 (v13), Samsung Galaxy A52s (v13), and more devices

This is My ApplicationManifest.xml code:

    <activity
      android:name="io.ionic.starter.MainActivity"
      android:exported="true"
      android:launchMode="singleTask"
      android:configChanges="keyboardHidden|keyboard|screenSize|locale|smallestScreenSize|screenLayout|uiMode"
      android:label="@string/title_activity_main"
      android:theme="@style/AppTheme.NoActionBarLaunch"
      android:screenOrientation="portrait"
    >
      <intent-filter>
        <action android:name="android.intent.action.MAIN" />
        <!-- <category android:name="android.intent.category.LAUNCHER" /> -->
      </intent-filter>
      <!-- Deeplink -->
      <intent-filter android:autoVerify="true">
        <action android:name="android.intent.action.VIEW" />
        <category android:name="android.intent.category.DEFAULT" />
        <category android:name="android.intent.category.BROWSABLE" />
        <data android:scheme="https" android:host="example.app.io" />
      </intent-filter>
    </activity>

    <activity-alias
      android:label="@string/title_activity_main"
      android:icon="@drawable/logo"
      android:roundIcon="@drawable/logo"
      android:name=".logo"
      android:enabled="false"
      android:exported="true"
      android:targetActivity="io.ionic.starter.MainActivity">
      <intent-filter>
        <action android:name="android.intent.action.MAIN" />
        <category android:name="android.intent.category.LAUNCHER" />
      </intent-filter>
    </activity-alias>

    <activity-alias
      android:label="@string/title_activity_main"
      android:icon="@drawable/newyear"
      android:roundIcon="@drawable/newyear"
      android:name=".newyear"
      android:enabled="true"
      android:exported="true"
      android:targetActivity="io.ionic.starter.MainActivity">
      <intent-filter>
        <action android:name="android.intent.action.MAIN" />
        <category android:name="android.intent.category.LAUNCHER" />
      </intent-filter>
    </activity-alias>

@IJustDev
Copy link

I had a similar problem. You may have the issue that the disabled icons include the one that should be activated

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
android bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants