Play a specific notification sound
问题 I've created a dialog for selecting a notification sound for an app. I'm querying the notification sounds by getting a cursor from the RingtoneManager: RingtoneManager manager = new RingtoneManager(this); manager.setType(RingtoneManager.TYPE_NOTIFICATION); Cursor cursor = manager.getCursor(); I then store the full path to it by concatenating the sound path with the name. This works fine when I set the selected sound as the notification sound but I can't get media player to play it on