Thursday 15 January 2015

Android: show this screen on start up checkbox? -



Android: show this screen on start up checkbox? -

this question has reply here:

how define started activity when relaunching android application? 1 reply

on main activity screen launched when app launches, have details how app works, etc, , user clicks "let's start" - jumps primary application activity screen.

i add together checkbox on initial screen label "show screen on start up", , checkbox selected default. if user deselects it, next time app run, skips screen , goes straight primary application screen.

any suggestions on how this?

you can show alert when app starts default checkbox , load initial selection sharedpreferences. (for example, "false" flag)

only when user changes selection, save new value sharedpreferences again. (change "true")

afterwards, user not see dialog on stratup because of saved value sharedpreferences.

based on value sharedpreferences want in oncreate function or wherever need.

android android-activity

No comments:

Post a Comment