I want to develop an application that shows an authentication screen one time after installing it, and then other screens on subsequent runs. Is there a way to do it?
I want to develop an application that shows an authentication screen one time after
Share
Use
SharedPreferenceto store afirstbootvalue, and check in the activity against that value. If the value is set, then the application has been launched before. Otherwise, you will display the activity and setthefirstrunflag in theSharedPreference.For example, your your launched activity might look something like this,