Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Android 10 return default value #12

Closed
aldyjrz opened this issue Aug 7, 2020 · 8 comments
Closed

Android 10 return default value #12

aldyjrz opened this issue Aug 7, 2020 · 8 comments

Comments

@aldyjrz
Copy link

aldyjrz commented Aug 7, 2020

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
Copy link
Owner

apsun commented Aug 7, 2020

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
Copy link
Author

aldyjrz commented Aug 7, 2020

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

I'm Aldi, from Indonesia

@TkgJamuKeliling
Copy link

TkgJamuKeliling commented Aug 8, 2020

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

@aldyjrz
Copy link
Author

aldyjrz commented Aug 8, 2020

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
Copy link

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
Copy link
Author

aldyjrz commented Aug 8, 2020

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
Copy link

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
Copy link

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

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants