Splash screen only once

laviniut

Active Member
Licensed User
Longtime User
How can i show a splash screen only once after application install, at first run, and only at first run ?
 

Theera

Well-Known Member
Licensed User
Longtime User
Upvote 0

mc73

Well-Known Member
Licensed User
Longtime User
At the very first run, store a variable inside a file in dirInternal for example. Every time you run your app, check for this variable (or even the existence of a file) and proceed as desired. If you are copying files from dirAssets, then just simply display your splashScreen upon copying.
 
Upvote 0

laviniut

Active Member
Licensed User
Longtime User
Theera, your code means that splash screen is displayed every time main activity is created or recreated, not only once after installation.
But mc73 give me a good idea with a variable inside a file. Thank you.
 
Upvote 0

Theera

Well-Known Member
Licensed User
Longtime User
I'm sorry that I 'm not good at English,it make me mistake it.
 
Upvote 0
Top