How can I load a sound from the SD Card insted of the raw folder in my Android app useing Soundpool?

て烟熏妆下的殇ゞ 提交于 2020-01-14 04:24:07

问题


I am useing this example to load and play sounds in my Androidapp. I am adding new sounds with mSoundManager.addSound(2, R.raw.sound1);. How can I load a sound from the SD Card insted of the raw folder in my app?


回答1:


Have a look at this: http://developer.android.com/reference/android/os/Environment.html#getExternalStorageState()



来源:https://stackoverflow.com/questions/4293122/how-can-i-load-a-sound-from-the-sd-card-insted-of-the-raw-folder-in-my-android-a

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!