Ringtone Manager API 23

I am trying to create an alarm function which the user can set an alarm, with the alarm playing for 6 seconds. The code I have works on my emulator but when I run it on my Android device no ringtone goes off. I thought it could have something to do with it being API 23, so I added in the permission check for READ_EXTERNAL_STORAGE permission but am getting an error with MY_PERMISSIONS_REQUEST_READ_EXTERNAL_STORAGE

Manifest file:


MainAlarm Activity

MainAlarm Activity continued (2)

MainAlarm Activity continued (3)...

Read More »

By: StackOverFlow - Tuesday, 13 March

Related Posts