1

Android 2.2.1を実行している電話(Samsung GT-I9000)を持っています。共有設定への保存に失敗します:

Editor editor = ...;
if (!editor.commit()) {
    Log.e(TAG, "Nope!");
}

関連する次のログ ステートメントが吐き出されていることがわかります。

12-10 14:06:03.919: E/ApplicationContext(4684): 
    Couldn't rename file
    /dbdata/databases/com.me.myapp/shared_prefs/com.me.prefs.xml to backup file
    /dbdata/databases/com.me.myapp/shared_prefs/com.me.prefs.xml.bak
12-10 14:06:03.919: E/MyApp(200): Nope!

どうすればこれを修正できますか?これは非常にイライラします。

ありがとう

4

1 に答える 1

1

2.2 から 2.2.1 までの samsung galaxy S デバイスを使用している場合、パスはログに保存しようとしているように見え"/dbdata/databases/xx.xx.xx/shared_prefs/com.me.prefs.xml"ます"/data/databases/com.me.myapp/shared_prefs/com.me.prefs.xml"。これは、Samsung デバイスの問題です。

Android の現在の未解決の問題リストで、dustin によって投稿された問題をフォローできます。

http://code.google.com/p/android/issues/detail?id=14359

于 2012-12-10T20:13:38.250 に答える