SharedPreferences settings; -- if(settings.contains("var")) { Log.i("var", "True"); } else { Log.i("var", "False"); } } -- settings.edit().putInt("var", your_variable).commit(); --
沒有留言:
張貼留言