12-02 10:42:17.819 20550 20550 E AndroidRuntime: java.lang.NumberFormatException: For input string: "notification_sound"
12-02 10:42:17.819 20550 20550 E AndroidRuntime: at java.lang.Long.parseLong(Long.java:594)
12-02 10:42:17.819 20550 20550 E AndroidRuntime: at java.lang.Long.parseLong(Long.java:636)
12-02 10:42:17.819 20550 20550 E AndroidRuntime: at android.content.ContentUris.parseId(ContentUris.java:89)
12-02 10:42:17.819 20550 20550 E AndroidRuntime: at android.media.RingtoneManager.getRingtonePosition(RingtoneManager.java:513)
12-02 10:42:17.819 20550 20550 E AndroidRuntime: at com.takisoft.preferencex.g.a(Unknown Source:146)
12-02 10:42:17.819 20550 20550 E AndroidRuntime: at com.takisoft.preferencex.g.a(Unknown Source:11)
I'm facing the same problem right now. But I'm of the opinion that the whole thing has already run successfully on Android 10...
Any updates on this issue?
The error seems to come from here: https://github.com/takisoft/preferencex-android/blob/205ec8110a503f9af50a25ba7c67df05adfe02bb/preferencex-ringtone/src/main/java/com/takisoft/preferencex/RingtonePreferenceDialogFragmentCompat.java#L248
It seems Android 10 calls
ContentUris.parseId
insidegetRingtonePosition
which throws if the last segment of theUri
isn't a number.