比如说有.txt,.doc,还有其他的一些格式都可以对应一个text对应的格式,那么我们就可以把这些归到一个return this MIME type:vnd.android.cursor.item/vnd.example.text
然后就可以使用这个做对应的打开方式的动作(可以打开所有文本文件的动作)
然后就可以使用这个做对应的打开方式的动作(可以打开所有文本文件的动作)
解决方案 »
- Win7家庭普通版能不能进行Android项目开发
- Android的service里面的函数可以写成公用的方法在Activity里面调用吗??Android的service里面的函数可以写成公用的
- 关于android eclipse安装启动遇到的问题。。求助
- android view onTouch事件监听顺序
- 右边两个按钮并排靠右,左边一个按钮填满其他空间 用了layout_width="0dp" layout_weight="1"就可以了,这两人个是什么意思呢?
- 有没有这样的方法String.format("aaa%d, bbb%d, ccc%d", "我","你", “他”);
- 照着百度demo定位写的报错,看看怎么回事
- android折线图
- github 开源项目的使用
- 用android studio 开发应用,遇到点小问题
- 与C#服务端网络通信的问题!
- android中使用下面这种方式切换语言后为什么要重启才生效?
URI submitted to getType() limits the request to a specific record.
There's one form of the MIME type for a single record and another for multiple records.
Use the Uri methods to help determine what is being requested. (官网doc)
不要复制DOC