第一頁 返回 繼續 最後一頁 摘要 圖形
SharedPreferences
Android maintains a key-value database to store
data like preferences
- getSharedPreferences(String name, int mode);//mode 0,1
- .getString(name, default_value) to get data
- .edit().putString(name, value).commit(); to store data
- getString,getFloat ,getInt,getLong,getBoolean
It can be used to store simple records