常用链接

统计

最新评论

android register mimetype

在manifest文件里->activity 添加

<intent-filter>

     <action android:name="android.intent.action.VIEW" />

     <category android:name="android.intent.category.DEFAULT" />

     <data android:mimeType="*/*">

</intent-filter>

这样就把当前程序注册为 可以打开/查看所有类型的文件. 或者要查看jpeg, mimeType要改为: image/jpeg

当在文件管理器里点击任何文件, 系统都会试图去执行你的程序.

posted on 2011-02-11 14:49 九宝 阅读(614) 评论(0)  编辑  收藏 所属分类: android


只有注册用户登录后才能发表评论。


网站导航: