当前位置: 首页 > news >正文

企业网站包含的要素广州一共13个区

企业网站包含的要素,广州一共13个区,wordpress教程 pdf下载地址,做营销的一般逛哪些网站Android 打开本地的文件#xff0c;目前来说#xff0c;其实很常见。而且现在有手机版的office了。查看office的全家桶就更加方便。首先要知道的是#xff0c;Android 打开本地文件是根据类型打开的#xff0c;也就是根据文件的 MIME 类型来确定如果不知道是什么类型#…Android 打开本地的文件目前来说其实很常见。而且现在有手机版的office了。查看office的全家桶就更加方便。首先要知道的是Android 打开本地文件是根据类型打开的也就是根据文件的 MIME 类型来确定如果不知道是什么类型那就是 */*类型匹配表private static final String[][] MIME_MapTable{//{后缀名 MIME类型}{.3gp, video/3gpp},{.apk, application/vnd.android.package-archive},{.asf, video/x-ms-asf},{.avi, video/x-msvideo},{.bin, application/octet-stream},{.bmp, image/bmp},{.c, text/plain},{.class, application/octet-stream},{.conf, text/plain},{.cpp, text/plain},{.doc, application/msword},{.exe, application/octet-stream},{.gif, image/gif},{.gtar, application/x-gtar},{.gz, application/x-gzip},{.h, text/plain},{.htm, text/html},{.html, text/html},{.jar, application/java-archive},{.java, text/plain},{.jpeg, image/jpeg},{.jpg, image/jpeg},{.js, application/x-javascript},{.log, text/plain},{.m3u, audio/x-mpegurl},{.m4a, audio/mp4a-latm},{.m4b, audio/mp4a-latm},{.m4p, audio/mp4a-latm},{.m4u, video/vnd.mpegurl},{.m4v, video/x-m4v},{.mov, video/quicktime},{.mp2, audio/x-mpeg},{.mp3, audio/x-mpeg},{.mp4, video/mp4},{.mpc, application/vnd.mpohun.certificate},{.mpe, video/mpeg},{.mpeg, video/mpeg},{.mpg, video/mpeg},{.mpg4, video/mp4},{.mpga, audio/mpeg},{.msg, application/vnd.ms-outlook},{.ogg, audio/ogg},{.pdf, application/pdf},{.png, image/png},{.pps, application/vnd.ms-powerpoint},{.ppt, application/vnd.ms-powerpoint},{.prop, text/plain},{.rar, application/x-rar-compressed},{.rc, text/plain},{.rmvb, audio/x-pn-realaudio},{.rtf, application/rtf},{.sh, text/plain},{.tar, application/x-tar},{.tgz, application/x-compressed},{.txt, text/plain},{.wav, audio/x-wav},{.wma, audio/x-ms-wma},{.wmv, audio/x-ms-wmv},{.wps, application/vnd.ms-works},//{.xml, text/xml},{.xml, text/plain},{.z, application/x-compress},{.zip, application/zip},{, */*}};获取文件的类型。private String getMIMEType(File file) {String type*/*;String fName file.getName();//获取后缀名前的分隔符.在fName中的位置。int dotIndex fName.lastIndexOf(.);if(dotIndex 0)return type;/* 获取文件的后缀名 */String fileType fName.substring(dotIndex,fName.length()).toLowerCase();if(fileType null || .equals(fileType))return type;//在MIME和文件类型的匹配表中找到对应的MIME类型。for(int i0;iif(fileType.equals(MIME_MapTable[i][0]))type MIME_MapTable[i][1];}return type;}打开文件Intent intent new Intent();File file new File(FileDirectory);intent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK);//设置标记intent.setAction(Intent.ACTION_VIEW);//动作查看intent.setDataAndType(Uri.fromFile(file), getMIMEType(file));//设置类型context.startActivity(intent);
http://www.huolong8.cn/news/405581/

相关文章:

  • wordpress 建站简单吗网站品牌栏目建设
  • 大型网站seo方法大连九死一疯事件
  • python 网站开发流程拼多多一件代发货源app
  • 怎么进行网站优化丹阳网站建设开发
  • 保定网站建设解决方案wordpress install.php
  • 辽源市网站建设wordpress 主题 mip
  • 怎么为网站做外链诛仙2官方网站西施任务怎么做
  • 营销网站怎样做广州编程课程培训机构排名
  • 苏州营销型网站建设方法中国最大的建站平台
  • 网站版面如何布局怎么看一个网站好坏
  • 专业建筑设计网站平台南京营销
  • 广州网站优化快速提升网站排名设计网站页面教案
  • 网站制作公司天强科技网站设计怎么做明信片
  • 网站用什么系统好用网站建设资料 优帮云
  • 什么语言做网站快微信网站图片链接怎么做
  • 南宁手机模板建站网络营销与传统营销的区别
  • 四川汉舟电力建设有限公司网站轻食网络推广方案
  • 台州市建设厅网站钢网架公司
  • 深圳建企业网站公司wordpress如何让导航栏浮动
  • 山东企业网站建设费用保定网站推广费用
  • 商务局网站建设方案软考证书有用吗张雪峰
  • 网站做seo的好处wordpress 启用多站点
  • 兄弟们给个能用的网站android开发视频
  • 网站建设备案费用wordpress是h5页面跳转
  • 怎样创建网站域名平台天津做网站选择津坤科技c
  • 巢湖自助建站系统大连男科医院排名表
  • 网站手机app开发滨州网站建设哪家好
  • 广州北京网站建设公司哪家好网站必做外链
  • 龙华网站建设方案咨询Myeclipse怎么做网站
  • jsp网站开发实例标题栏简单网站制作教程