-
Notifications
You must be signed in to change notification settings - Fork 46
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
NumberFormatException in RingtonePreferenceDialogFragmentCompat #203
Comments
What Android version do you use? |
@Gericop: Android 10 |
Do those devices run Android 10 as well? |
@Gericop: Yes, there's Android 10 on all of them. |
Well, at first look it must be something with the scoped storage introduced in 10. The problem is to add a custom ringtone, the app must copy the file from wherever the user selects it from to the ringtone folder of the phone but it seems like there's no way to do this with scoped storage. A workaround would be to show a save dialog after selecting the file and saving it to the ringtone folder but that's just a pretty terrible UX... |
A different solution would be introducing the shared prefs to the game so the custom ringtones would get copied into the app folders (which are available with scoped storage), and the custom ringtone's properties would be saved to the shared prefs. I wonder how the file explorers will work with the messy scoped storage... I guess they won't. |
@Gericop do you know where the list of added custom notification sounds is stored?
I see that if you start fresh with Android 10, a toast is shown when trying to add a custom ringtone which is still better than a completely unusable RingtonePreference like the case above. Edit: the exception I'm getting comes from |
Hello,
I'm getting this exception on a Pixel 3.
The text was updated successfully, but these errors were encountered: