Skip to content
Advertisement

Webview Splash screen doen’t show once as expected

Am trying to create a webview app displaying a splash screen once after the first lunch. Initially once i open the app the splash screen will show up then after 5 seconds it will load main activity VaultActivity, but after i have added the line of code to check if splash screen ‘SplashScreen’ has been launched before, the app stopped loading VaultActivity using the SPLASH_TIME_OUT i set and also the splash screen still shows up anytime i lunch the app.

Initially

JavaScript

Currently

JavaScript

My Manifest

JavaScript

Advertisement

Answer

🙂 you need just adding startActivity in else section.

JavaScript
User contributions licensed under: CC BY-SA
3 People found this is helpful
Advertisement