apsun / RemotePreferences

A drop-in solution for inter-app access to SharedPreferences.
MIT License
138 stars 32 forks source link

Android 10 return default value #12

Closed aldyjrz closed 3 years ago

aldyjrz commented 4 years ago

Hello, apsun. I have problem with my module that can't return new value in Android 10 Do you have any trick or tips to android 10? It always return default value

apsun commented 4 years ago

As far as I know nothing inherent to Android 10 broke this (I've tested it to work fine on even Android 11). Try turning on strict mode (https://github.com/apsun/RemotePreferences#strict-mode), which will make it throw an exception instead of returning the default value. That way you can narrow down why it's failing.

aldyjrz commented 4 years ago

I appreciate for your fast response. Thanks for your great work!!! I'll try strict mode nexy

I'm Aldi, from Indonesia

TkgJamuKeliling commented 4 years ago

I have same problem here with Android 10. Value always return to default..

aldyjrz commented 4 years ago

I have some problem here with Android 10. Value always return to default..

Just set preferences File to setReadable and Executable. And call it on every cycle like onResume, onPause, onRestart.

Wa aja sih lu gondrong

TkgJamuKeliling commented 4 years ago

I have some problem here with Android 10. Value always return to default..

Just set preferences File to setReadable and Executable. And call it on every cycle like onResume, onPause, onRestart.

Wa aja sih lu gondrong

oh begono... okelah... jajal dulu hu...

aldyjrz commented 4 years ago

I have some problem here with Android 10. Value always return to default..

Just set preferences File to setReadable and Executable. And call it on every cycle like onResume, onPause, onRestart. Wa aja sih lu gondrong

oh begono... okelah... jajal dulu hu...

Japri dong mau nanya lagi masalah detector 0

TkgJamuKeliling commented 4 years ago

I have some problem here with Android 10. Value always return to default..

Just set preferences File to setReadable and Executable. And call it on every cycle like onResume, onPause, onRestart. Wa aja sih lu gondrong

oh begono... okelah... jajal dulu hu...

Japri dong mau nanya lagi masalah detector 0

lupakan saja.. lebih baik simpan tenaga dan pikiran untuk GoPartner... :p

StringInteger74 commented 4 years ago

I have same problem here with Android 10. Value always return to default..

Try .... setExecutable(true, false) setReadable(true, false)