Saving settings on android

Hello Everyone.

I tried to look for the solution in the forum but I haven’t found it yet. The problem I have lies when I want save my settings with my custom preferences like it happens on the desktop version of the app. However, every time I try to save I get this exception:

the settings key is the same name as the package of the app.

E/dominoes.elements.GamePreferences(12835): SEVERE null
E/dominoes.elements.GamePreferences(12835): java.util.prefs.BackingStoreException: java.io.FileNotFoundException: /.java/.userPrefs/com.foxoutofthebox.dominoes/prefs-aacd389d-c1d4-43d4-af73-f76a4ef4ea9a.xml.tmp: open failed: ENOENT (No such file or directory)
E/dominoes.elements.GamePreferences(12835): 	at java.util.prefs.FilePreferencesImpl.flushSpi(FilePreferencesImpl.java:138)
E/dominoes.elements.GamePreferences(12835): 	at java.util.prefs.FilePreferencesImpl.syncSpi(FilePreferencesImpl.java:185)
E/dominoes.elements.GamePreferences(12835): 	at java.util.prefs.AbstractPreferences.sync(AbstractPreferences.java:782)
E/dominoes.elements.GamePreferences(12835): 	at com.jme3.system.AppSettings.save(AppSettings.java:344)
E/dominoes.elements.GamePreferences(12835): 	at dominoes.elements.GamePreferences.save(GamePreferences.java:93)
E/dominoes.elements.GamePreferences(12835): 	at dominoes.levels.GameAppState.cleanup(GameAppState.java:195)
E/dominoes.elements.GamePreferences(12835): 	at com.jme3.app.state.AppStateManager.cleanup(AppStateManager.java:323)
E/dominoes.elements.GamePreferences(12835): 	at com.jme3.app.Application.destroy(Application.java:635)
E/dominoes.elements.GamePreferences(12835): 	at com.jme3.app.AndroidHarness.destroy(AndroidHarness.java:483)
E/dominoes.elements.GamePreferences(12835): 	at com.jme3.system.android.OGLESContext.deinitInThread(OGLESContext.java:247)
E/dominoes.elements.GamePreferences(12835): 	at com.jme3.system.android.OGLESContext.onDrawFrame(OGLESContext.java:338)
E/dominoes.elements.GamePreferences(12835): 	at android.opengl.GLSurfaceView$GLThread.guardedRun(GLSurfaceView.java:1531)
E/dominoes.elements.GamePreferences(12835): 	at android.opengl.GLSurfaceView$GLThread.run(GLSurfaceView.java:1248)
E/dominoes.elements.GamePreferences(12835): Caused by: java.io.FileNotFoundException: /.java/.userPrefs/com.foxoutofthebox.dominoes/prefs-aacd389d-c1d4-43d4-af73-f76a4ef4ea9a.xml.tmp: open failed: ENOENT (No such file or directory)
E/dominoes.elements.GamePreferences(12835): 	at libcore.io.IoBridge.open(IoBridge.java:456)
E/dominoes.elements.GamePreferences(12835): 	at java.io.FileOutputStream.<init>(FileOutputStream.java:87)
E/dominoes.elements.GamePreferences(12835): 	at java.io.FileOutputStream.<init>(FileOutputStream.java:72)
E/dominoes.elements.GamePreferences(12835): 	at java.util.prefs.XMLParser.writeXmlPreferences(XMLParser.java:482)
E/dominoes.elements.GamePreferences(12835): 	at java.util.prefs.FilePreferencesImpl.flushSpi(FilePreferencesImpl.java:136)
E/dominoes.elements.GamePreferences(12835): 	... 12 more
E/dominoes.elements.GamePreferences(12835): Caused by: android.system.ErrnoException: open failed: ENOENT (No such file or directory)
E/dominoes.elements.GamePreferences(12835): 	at libcore.io.Posix.open(Native Method)
E/dominoes.elements.GamePreferences(12835): 	at libcore.io.BlockGuardOs.open(BlockGuardOs.java:186)
E/dominoes.elements.GamePreferences(12835): 	at libcore.io.IoBridge.open(IoBridge.java:442)
E/dominoes.elements.GamePreferences(12835): 	... 16 more

I used this alternative for now.