Android(安卓)intent打开压缩文件
来源:互联网 发布:ubuntu只有客人会话 编辑:程序博客网 时间:2024/06/05 16:42
网上找了好久都没找到,先简单使用如下:
Intent intent = new Intent();
intent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK);intent.setAction(android.content.Intent.ACTION_VIEW);
intent.setDataAndType(Uri.fromFile(file), "application/x-gzip");
亲测了.zip跟.rar可以。。。其他的需要的话可以自己测测
0 0
- Android(安卓)intent打开压缩文件
- 安卓开发中intent打开文件详解
- 安卓-android.intent.category.DEFAULT
- 安卓笔记/使用Intent打开activity添加flag防止多次打开
- 安卓学习: Intent
- 安卓之Intent
- 安卓013Intent
- 安卓入门---Intent
- 安卓之Intent
- 安卓intent详解
- android Intent打开URL链接
- Android Intent打开URL链接
- android 使用intent打开网页
- Android 文件打开的intent
- 安卓学习140502:android Intent机制详解
- Android安卓——Intent通信(1)
- Android安卓——Intent(2)传递数据
- Android安卓——Intent(3)过滤器
- opencv视频的读取和创建
- Java Swing界面编程(20)---多行文本输入组件:JTextArea
- Android TabHost
- Xshell下Ubuntu及VIM的配色方案
- 第三章_字符串转换为整数
- Android(安卓)intent打开压缩文件
- POJ——水刷 Hangover
- Android面向HTTP协议发送get请求
- 黑马程序员:__流程控制__
- WebGL 中 OpenGL ES 指令与 iOS 中 C 版指令的差异简析
- emu 启动内核节约时间方法
- Android面向HTTP协议发送post请求
- Android Service与Activity之间通信的几种方式
- 手机网页放缩局部区域原理