int age = sharedPreferences.getInt("age", 1); 其中 itcast 設置的是存儲資訊的xml文件名,Context.MODE_PRIVA ...
www.360doc.com