sp = getSharedPreferences("WelCome", MODE_PRIVATE); boolean isFirst = sp.getBoolean("isFirst", true); if(isFirst==true){ Editor editor = sp.edit(); editor.putBoolean("isFirst", false); editor.commit(); }else{ Intent intent = new Intent(this,MainActivity.class); startActivity(intent); finish(); }
sp = getSharedPreferences("WelCome", MODE_PRIVA