SharedPreferences sharedPreferences=getSharedPreferences("day",MODE_WORLD_READABLE);
//Get the object
boolean day=sharedPreferences.getBoolean("day",true);
if(day){ //The first time entering the stored value means entering the second jump Go to the page
SharedPreferences.Editor editor=sharedPreferences.edit();
editor.putBoolean("day",false);
editor.commit();
}else{
startActivity(new Intent(MainActivity.this,Main2Activity.class));
finish( );
}