Saving audio content Uri in sharedpreference to play later
问题 I am trying to design an Alarm app where Audio is played when the device is shaken. I am selecting the Audio from file system using "ACTION_GET_CONTENT" in Intent with ActivityForResult . I am able to fetch the content uri , saving it in SharedPreference and playing it with MediaPlayer on a different Activity passing the URI in Intent . But, once I close my app and reopen it and try to play the Audio from the URI in SharedPrederence , the Audio is not played. What can be done so that I can