https://bugs.kde.org/show_bug.cgi?id=456515

--- Comment #3 from Joost <jo...@ruijsch.com> ---
Maybe not so weird. 
Looking at logcat above and the source code here:
https://github.com/KDE/kdeconnect-android/blob/master/src/org/kde/kdeconnect/Plugins/FindMyPhonePlugin/FindMyPhonePlugin.java
what I think is happening:

The onCreate function (line 68) obtains a content-uri to the default ringtone.
Then the  uri is opened by the mediaplayer, but it does not simply point to a
file, but to a resource within ringtonemanager.java that is trying to obtain
the ringtone data and it does not have the permission to do that. 

Perhaps there is a more compatible way to play the default ringtone. For
example the second answer here:
https://stackoverflow.com/questions/22503189/how-to-get-current-ringtone-in-android

quote:

>Uri defaultRintoneUri = 
>RingtoneManager.getActualDefaultRingtoneUri(getApplicationContext(), 
>RingtoneManager.TYPE_RINGTONE);
>Ringtone defaultRingtone = 
>RingtoneManager.getRingtone(getApplicationContext(), defaultRintoneUri);
>defaultRingtone.play();

Maybe when I have time I'll play around with that and see if it works on my
phone.

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to