Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我需要将我的 Uri 转换为 Res ID。这可能吗?我需要它,因为我的 SD 卡上有 .mp3,我想将其放入 SoundPool 中,它只需要 Res ID。注意:(不能使用 MediaPlayer,需要 soundpool 功能)
谢谢您的帮助
Urrrm,您不能使用SoundPool.load(String path, int priority)并从 Uris 创建路径字符串吗?