选择程序打开doc文件
04-30 09:59:41.411: E/Exception(30749): No Activity found to handle Intent { act=android.intent.action.VIEW cat=[android.intent.category.DEFAULT] dat=file:///sdcard/com.xxx.xxx/aaa.doc typ=application/msword/* flg=0x10000000 }
这是异常,
主要是在匹配mime类型时有
} else if (end.equals("doc")) {
type = "application/msword";
这个代码,去掉它,MIME按type="*"走的话就没问题,但是弹出客户端所有的程序列表来选择,实在是太多了,我只想弹出跟doc相关的程序,比方金山wps等,应该如何做?
下载用的android版本4.1.2,我不知道是不是这段找的mime代码是老版本的,