我需要将URI转换为资源ID,不知道能不能做到?因为要将SD卡上的mp3放到SoundPool,仅仅需要资源ID即可。
注:不能用MediaPlayer,需要SoundPool方法。
版主 2# jl198411 发表于 2012-2-23 10:08:32
使用SoundPool.load(String path, int priority)这个方法
实习工程师 3# a630547510 发表于 2012-2-23 10:51:40
  你可以看看SoundPool.load(String path, int priority)方法,从你的URI创建path即可。
您需要登录后才可以回帖 登录 | 注册

关于我们|手机版|Archiver|DEVDIV.COM ( 京ICP备07040843号 )  

GMT+8, 2012-5-19 16:39

Powered by DEVDIV.COM!

© 2010-2012 DEVDIV.COM Coummunity.

回顶部