【发布时间】:2011-08-29 00:40:46
【问题描述】:
我需要将我的 Uri 转换为 Res ID。这可能吗?我需要它,因为我的 SD 卡上有 .mp3,我想将其放入 SoundPool 中,它只需要 Res ID。注意:(不能使用MediaPlayer,需要soundpool函数)
感谢您的帮助
【问题讨论】:
标签: android resources uri soundpool
我需要将我的 Uri 转换为 Res ID。这可能吗?我需要它,因为我的 SD 卡上有 .mp3,我想将其放入 SoundPool 中,它只需要 Res ID。注意:(不能使用MediaPlayer,需要soundpool函数)
感谢您的帮助
【问题讨论】:
标签: android resources uri soundpool
Urrrm,你不能使用 SoundPool.load(String path, int priority) 并从 Uris 创建路径字符串吗?
【讨论】: