2011-08-29 125 views
0

我需要将我的Uri转换为Res ID。这可能吗?我需要它,因为我的SD卡上有.mp3s,我想将其放入SoundPool,它只需要Res ID。注:(不能使用的MediaPlayer,需要的Soundpool功能)Uri到资源ID

感谢您的帮助

回答

0

Urrrm,你不能使用SoundPool.load(String path, int priority)从尤里斯创建路径字符串?

+0

什么hashmap?你在原来的问题中没有提到hashmap。你只是声明SoundPool“只需要Res ID”,这是不正确的。重新回答你的问题,并解释你想要做什么以及问题是什么。 – Squonk