Android Question rtManager.GetDefault does not work Android5

AlexMaa

Member
Licensed User
Longtime User
In Android 4.x - work
B4X:
Dim rtManager As RingtoneManager
Dim mp As MediaPlayer
mp.Initialize
mp.Load(rtManager.GetContentDir, rtManager.GetDefault(rtManager.TYPE_RINGTONE))
mp.Play

In Android 5.2 - does not work !
java.io.FileNotFoundException: Direct file access no longer supported; ringtone playback is available through android.media.Ringtone

what to do?
 

AlexMaa

Member
Licensed User
Longtime User
I use version b4a 4.30 - this version I was completely satisfied. switch to version 5.x does not want.
(Besides, I do not remember on what version I have ended support)
4.30 in phone.jar no method RingtoneManager.Play. Can I use phone.jar from 5.x to version 4.3. or a conflict license?
----
Excuse me, English is not my native language
 
Last edited:
Upvote 0
Cookies are required to use this site. You must accept them to continue using the site. Learn more…