Hi,
I uploaded my app to Play Store and got the following report:
Double splash screen Warning
The crawler detected a blank loading screen or a custom splash screen that is shown in your app after the system splash screen. Users launching your app on Android 12 or higher will see two splash screens.
To fix this issue, update your app to use the SplashScreen API.
I checked the forum and found Erel’s code:
#If JAVA
import androidx.core.splashscreen.SplashScreen;
public void _onCreate() {
BA.Log("onCreate");
SplashScreen splashScreen = SplashScreen.installSplashScreen(this);
}
#End If
I put it in Main:
Sub Globals
End Sub
Sub Activity_Create(FirstTime As Boolean)
Dim pm As B4XPagesManager
pm.Initialize(Activity)
End Sub
#If JAVA
import androidx.core.splashscreen.SplashScreen;
public void _onCreate() {
BA.Log("onCreate");
SplashScreen splashScreen = SplashScreen.installSplashScreen(this);
}
#End If
#Region Delegates
Sub Activity_Resume
B4XPages.Delegate.Activity_Resume
End Sub
But I get this error when I compile:
B4A Version: 12.00
Parsing code. (0.27s)
Java Version: 8
Building folders structure. (0.08s)
Compiling code. (0.24s)
Compiling layouts code. (0.02s)
Organizing libraries. (0.00s)
(AndroidX SDK)
Compiling resources (0.08s)
Linking resources (1.21s)
Compiling generated Java code. Error
javac 1.8.0_381
src\com\learn\chess\main.java:3: error: package androidx.core.splashscreen does not exist
import androidx.core.splashscreen.SplashScreen;
^
Note: src\com\learn\chess\main.java uses or overrides a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
1 error
How do I solve this?
Any suggestions will be gratefully received