blocking the activities once they are executed in android -


i working on application contain register activity it's first page on tabs. want once user register whenever user starts application should run main menu screen , should never display register screen till user uninstall application , reinstall again.

you can use sharedpreferences. example:

sharedpreferences mprefs = getsharedpreferences("mypreferences", context.mode_private); sharedpreferences.editor editor = mprefs.edit(); editor.putboolean("firsttime", true); editor.commit(); 

so can check if firsttime true doing this:

sharedpreferences mprefs = getsharedpreferences("mypreferences", context.mode_private); if(mprefs.getboolean(firsttime, false){     //show screen }  

Comments

Popular posts from this blog

c# - SVN Error : "svnadmin: E205000: Too many arguments" -

c# - Copy ObservableCollection to another ObservableCollection -

All overlapping substrings matching a java regex -