Status Update
Comments
al...@google.com <al...@google.com>
ca...@google.com <ca...@google.com> #2
Can you please provide some details like ?
- Your theme file
- Your manifest
- Your startup activity
Or a sample project to reproduce the bug
em...@gmail.com <em...@gmail.com> #3
Manifest
<application
android:name=".MainApplication"
android:allowBackup="true"
android:autoRevokePermissions="allowed"
android:autoVerify="true"
android:configChanges="orientation|keyboardHidden|screenSize|uiMode"
android:dataExtractionRules="@xml/data_extraction_rules"
android:description="@string/pershkrimi"
android:directBootAware="true"
android:extractNativeLibs="true"
android:fullBackupContent="false"
android:hardwareAccelerated="true"
android:icon="@mipmap/ic_launcher"
android:label="@string/app_name"
android:launchMode="singleTask"
android:logo="@mipmap/ic_launcher"
android:multiArch="true"
android:networkSecurityConfig="@xml/network_security_config"
android:preserveLegacyExternalStorage="true"
android:requestLegacyExternalStorage="true"
android:resizeableActivity="true"
android:roundIcon="@mipmap/ic_launcher_round"
android:supportsRtl="true"
android:theme="@style/AppTheme_BASE"
android:usesCleartextTraffic="true"
tools:ignore="UnusedAttribute">
<activity
android:name=".activities.paneli_kryesor"
android:configChanges="keyboardHidden|orientation|screenSize|uiMode"
android:exported="true"
android:icon="@mipmap/ic_launcher"
android:label="@string/app_name"
android:windowSoftInputMode="adjustResize"
android:theme="@style/Theme.App.Starting"
tools:ignore="RedundantLabel">
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
Theme File
<style name="Theme.App.Starting" parent="Theme.SplashScreen">
// Set the splash screen background, animated icon, and animation duration.
<item name="windowSplashScreenBackground">@color/black</item>
// Use windowSplashScreenAnimatedIcon to add either a drawable or an
// animated drawable. One of these is required.
<item name="windowSplashScreenAnimatedIcon">@drawable/logo</item>
<item name="windowSplashScreenAnimationDuration">200</item> # Required for
# animated icons
// Set the theme of the Activity that directly follows your splash screen.
<item name="postSplashScreenTheme">@style/Theme.App</item> # Required.
</style>
ca...@google.com <ca...@google.com> #4
Which version of the core-splashscreen
library are you using?
em...@gmail.com <em...@gmail.com> #5
implementation 'androidx.core:core-splashscreen:1.0.0-beta01'
ca...@google.com <ca...@google.com> #6
Just to be sure: you are talking about Android 11 and not Android 12. If you are on Android 12, the splash screen is only shown when you click the launcher icon, and not when you run it from Android Studio
em...@gmail.com <em...@gmail.com> #7
Yes, I'm talking about Android 11
ca...@google.com <ca...@google.com> #8
I can't reproduce the bug. Can you please share a sample project to repro the bug?
Also, on which device did you try?
em...@gmail.com <em...@gmail.com> #9
The sample project cannot be shared but just for clarifying.
The theme style is on values-v21
and values-night-v21
folder because it doesn't support API lower than 21.
So i have putted in manifest <uses-sdk android:minSdkVersion="21" tools:overrideLibrary="androidx.core.splashscreen"/>
to allow compilation and use different theme styles based on this logic.
I'm testing on Xiaomi Note 9
ca...@google.com <ca...@google.com> #10
Can you try on an emulator with Android 11?
It might be a Xiaomi bug.
em...@gmail.com <em...@gmail.com> #11
Of course, i'll do it later and reply here when done.
em...@gmail.com <em...@gmail.com> #12
Adding more info : Splath theme using old method via 'android:windowBackground' works correctly.
I will try on emulator and will let you know.
ca...@google.com <ca...@google.com> #13
Thanks! That's very useful.
Can you also try bumping your min API to 21 just to check if that does anything? And also remove the <uses-sdk>
?
em...@gmail.com <em...@gmail.com> #14
I tried to lower min API to 21 and remove <uses-sdk>
and on physical device the issue is still there...
But on emulator Android 11 x86_64 it seems to works OK. So it may be Xiaomi bug but is there any workaround which i can try ?
Thanks, best regards
ca...@google.com <ca...@google.com> #15
That's very weird, I'll try on other devices, and try to get an Xiaomi Note 9 or at least some Xiaomi phone
em...@gmail.com <em...@gmail.com> #16
Yes, it is :), but at least we have some results :).
Keep me up to date if you can. Best Regards.
hi...@gmail.com <hi...@gmail.com> #17
ca...@google.com <ca...@google.com> #18
Thank you for reporting this. On API 21-22, the icon cannot be shown because of a platform limitation around the scaling of vectors, so that is expected.
kn...@duolingo.com <kn...@duolingo.com> #19
do...@traveloka.com <do...@traveloka.com> #20
Same, I use Samsung Android 12 and icon not displayed. It working fine when using emulator pixel android 12. I use splash screen version 1.0.0
ma...@marcardar.com <ma...@marcardar.com> #21
Samsung S10e here (Android 12). Icon not showing when using Rootless Pixel Launcher, but fine when using One UI Home launcher
gu...@gmail.com <gu...@gmail.com> #22
Same issue on Xiaomi redmi note 10s Android 13 miui global 14.0.2
pr...@gmail.com <pr...@gmail.com> #23
i was facing same issue on Xiaomi devices running on android 12 and above and i think Xiaomi hasn't implemented new splash screen in their android skin so we have to provide windowBackground value in style.xml for api 31 and above
here is the code which i have used for style.xml for api 31 and above
<item name="android:windowBackground">@drawable/background</item>
<item name="android:windowSplashScreenBackground">#FF5722</item>
</style>
<!-- Theme applied to the Android Window as soon as the process has started.
This theme determines the color of the Android Window while your
Flutter UI initializes, as well as behind your Flutter UI while its
running.
This Theme is only used starting with V2 of Flutter's Android embedding. -->
<style name="NormalTheme" parent="@android:style/Theme.Light.NoTitleBar">
<item name="android:windowBackground">?android:colorBackground</item>
</style>
Description
In Android 11 devices, the logo never show, just display a blank black screen.
Background color doesn't change too when trying to put different color than black