In Android 13, how to read a text file from external storage?
This is a question asked many times in the past, but the answers I found online seems all outdated since Android 13 (API 33). I want my app able to read an existing file /storage/emulated/0/Download/README.txt
.
How to check if some other package is able to post notifications on Android 10~12?
My app enhances the notification experience of the default SMS app, it shows notification when there is incoming SMS message.
How to check if some other package is able to post notifications on Android 10~12?
My app enhances the notification experience of the default SMS app, it shows notification when there is incoming SMS message.
Can I let user select an audio file and then load the same audio file at next start?
I got the READ_MEDIA_AUDIO
permission, and let user select an audio file. Audio file was played fine. But I want to load the same audio file at next startup, without making the user select the same file again (which is obviously inconvenient for the user). I saved the uri.toString() in the preference, and in onCreate, I read the string, and created the uri again.