解决方案 »
- 在4.X上编写的程序无法在2.3上运行吗?
- 把Android的"Dev Guide"下载下来了,不过看多了眼睛痛,大家有没有好办法?
- 跪求安卓连接网站数据库的方案
- 如何让图片随机移动,
- 关于android 手势的问题
- android 系统开发, 添加多分辨率选择功能
- svn下载后android4.2在ubuntu编译错误,dragon image.cfg sys_partition.fex [Failed]
- 字符串转化日期的问题
- 写style的时候,怎么有的属性没有智能提示?
- android studio前言中不允许有内容
- Google TTS 语音库软件,如何安装这个库?
- android用代码怎么实现移动网络的打开与关闭
这样引入的时候就可以使用循环了
package_name is your package name as listed in your AndroidManifest.xml. For example com.example.myapp
type is the string form of the resource type. For example, raw or drawable. name is the string form of the resource name. That is, whatever the file name was in your res directory, without the type extension. The easiest way to construct this form isUri uri = Uri.parse("android.resource://package_name/raw/my_resource");这个用for循环可以取得uri,如果你的对象可以直接用uri作参数的话。