我怎样才能加载声音从SD卡在我的Andr​​oid应用insted的原始文件夹的期运用的Soundpool? [英] How can I load a sound from the SD Card insted of the raw folder in my Android app useing Soundpool?

查看:160
本文介绍了我怎样才能加载声音从SD卡在我的Andr​​oid应用insted的原始文件夹的期运用的Soundpool?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我期运用这个例子来负载和发挥我的Andr​​oidapp声音。我加入新的声音与 mSoundManager.addSound(2 R.raw.sound1); 。如何从SD卡在我的应用程序insted的原始文件夹中加载声音?

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?

推荐答案

有一个看看这个:的http://developer.android.com/reference/android/os/Environment.html#getExternalStorageState()

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

这篇关于我怎样才能加载声音从SD卡在我的Andr​​oid应用insted的原始文件夹的期运用的Soundpool?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆