i have a program that shows a splash screen.But the problem is whenever i refresh same page again it appears.Is there any method to stop splash screen again and again.I want it just comes at first time not again and again.
Thank you
i have a program that shows a splash screen.But the problem is whenever i
Share
So you basically want the splash screen appear once per app launch.
Here’s a quick and dirty way:
android.app.Applicationas, say,MyApp;AndroidManifest.xml(<application android:name=".MyApp" ... >) so that it would get instantiated at app launch time;public static boolean SPLASH_SHOWN = false;Activity‘sonCreate()check ifSPLASH_SHOWN = false, show splash and set it totrue.