android - Show popup on application start only -
i want show pop every time application starts. pop should not appear again on moving previous activity. pop must appear again every time application starts.
this using everytime application starts first run set false.
public static firstrun; firstrun = getsharedpreferences("preference", mode_private).getboolean( "firstrun", true); if (firstrun) { //show popup. // save state getsharedpreferences("preference", mode_private).edit() .putboolean("firstrun", false).commit(); }
you can pass string using bundle putextra method splash screen check on main activity if(getintent.getextra.containskey("string passed splash screen")) show pop other wise normal behaviour of application.
Comments
Post a Comment