I have the following class, SplashActivity.java:
public class SplashScreen extends Activity{
@Override
protected void onCreate(Bund
SharedPreferences pref = getSharedPreferences("ActivityPREF", Context.MODE_PRIVATE);
if(pref.getBoolean("activity_executed", false)){
} else {
Intent intent = new Intent(this, TutorialOne.class);
startActivity(intent);
finish();
Editor ed = pref.edit();
ed.putBoolean("activity_executed", true);
ed.commit();
}
I think it should be like this.