开发者

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

开发者 https://www.devze.com 2023-01-27 09:43 出处:网络
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 t开发者_如何学Che SD Card insted of

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 t开发者_如何学Che SD Card insted of the raw folder in my app?


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

0

精彩评论

暂无评论...
验证码 换一张
取 消