SharedPreferences settings = mContext.getSharedPreferences("GAMEPINTU1", 0);
Editor edit = settings.edit();
//保存数据
edit.putInt("FIRSTSTART", 1);
edit.commit()
//取数据
settings.getInt("FIRSTSTART",0);
SharedPreferences settings = mContext.getSharedPreferences("GAMEPINTU1", 0);
Editor edit = settings.edit();
//保存数据
edit.putInt("FIRSTSTART", 1);
edit.commit()
//取数据
settings.getInt("FIRSTSTART",0);
你好,我是AI助理
可以解答问题、推荐解决方案等