判断是否第一次进入系统


sharedPreferences = getSharedPreferences("zhuce", 0);
if(!sharedPreferences.getBoolean("text",false)){
sharedPreferences.edit().putBoolean("text",true).commit();
}else{
Intent intent = new Intent(MainActivity.this, DengLu.class);
startActivity(intent);
}

posted @ 2016-02-22 08:40  无名“  阅读(238)  评论(0编辑  收藏  举报