当前位置:首页 » 安卓系统 » 安卓手机如何打开eye文件

安卓手机如何打开eye文件

发布时间: 2023-02-14 18:35:45

⑴ Android如何修改开机自动启动程序设置

以MIUI系统为例来说明一下修改开机启用应用步骤:

1、打开手机系统中的安全中心应用,选择”权限管理“选项。

⑵ Android 调用其他应用打开文件

java">/**
*打开文件
*@paramfile
*/
privatevoidopenFile(Filefile){
Intentintent=newIntent();
intent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
//设置intent的Action属性
intent.setAction(Intent.ACTION_VIEW);
//获取文件file的MIME类型
Stringtype=getMIMEType(file);
//设置intent的data和Type属性。
intent.setDataAndType(/*uri*/Uri.fromFile(file),type);
//跳转
startActivity(intent);
}
/**
*根据文件后缀名获得对应的MIME类型。
*@paramfile
*/
privateStringgetMIMEType(Filefile){
Stringtype="*/*";
StringfName=file.getName();
//获取后缀名前的分隔符"."在fName中的位置。
intdotIndex=fName.lastIndexOf(".");
if(dotIndex<0){
returntype;
}
/*获取文件的后缀名*/
Stringend=fName.substring(dotIndex,fName.length()).toLowerCase();
if(end=="")returntype;
//在MIME和文件类型的匹配表中找到对应的MIME类型。
for(inti=0;i<MIME_MapTable.length;i++){//MIME_MapTable??在这里你一定有疑问,这个MIME_MapTable是什么?
if(end.equals(MIME_MapTable[i][0]))
type=MIME_MapTable[i][1];
}
returntype;
}具体的看这篇文章http://tonysun3544.iteye.com/blog/1265884

热点内容
创建数据库语句mysql 发布:2025-07-03 02:14:34 浏览:145
python量化投资 发布:2025-07-03 02:05:11 浏览:804
proxy代理服务器地址 发布:2025-07-03 01:56:52 浏览:909
ps选区存储 发布:2025-07-03 01:55:21 浏览:841
sql2008连接数 发布:2025-07-03 01:55:20 浏览:245
androidstring 发布:2025-07-03 01:53:55 浏览:182
密码sql注入 发布:2025-07-03 00:44:07 浏览:555
oa服务器需要什么硬件 发布:2025-07-03 00:36:05 浏览:512
4mol的naoh怎么配置 发布:2025-07-03 00:19:10 浏览:856
linux虚机下载 发布:2025-07-03 00:19:06 浏览:651