Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
デバイスを再起動すると、Android アプリケーションで使用されている共有設定値が消去されるのはなぜですか?
誤ってこの設定をオンにした可能性があります。
そうでない場合は、データを正しく保存し、後で次のようにコミットしていることを確認してください。
SharedPreferences p = PreferenceManager.getDefaultSharedPreferences(this); p.edit().putString("myKey", "myValue"); p.edit().commit(); //No commit = no persitance