ppt文件内附声音文件,放在安卓平板闪退解决办法上只能打开图片,无法打开播放声音文件,有好办法解决吗?

Android打开各种类型的文件方法总结
很简单,通过调用的intent,我们可以打开各种文件,不熟悉的朋友可以了解下action、datatype、uri的相关知识。通用方法如下:public static Intent openFile(String filePath){
File file = new File(filePath);
if(!file.exists())
/* 取得扩展名 */
String end=file.getName().substring(file.getName().lastIndexOf(".") + 1,file.getName().length()).toLowerCase();
/* 依扩展名的类型决定MimeType */
if(end.equals("m4a")||end.equals("mp3")||end.equals("mid")||
end.equals("xmf")||end.equals("ogg")||end.equals("wav")){
return getAudioFileIntent(filePath);
}else if(end.equals("3gp")||end.equals("mp4")){
return getAudioFileIntent(filePath);
}else if(end.equals("jpg")||end.equals("gif")||end.equals("png")||
end.equals("jpeg")||end.equals("bmp")){
return getImageFileIntent(filePath);
}else if(end.equals("apk")){
return getApkFileIntent(filePath);
}else if(end.equals("ppt")){
return getPptFileIntent(filePath);
}else if(end.equals("xls")){
return getExcelFileIntent(filePath);
}else if(end.equals("doc")){
return getWordFileIntent(filePath);
}else if(end.equals("pdf")){
return getPdfFileIntent(filePath);
}else if(end.equals("chm")){
return getChmFileIntent(filePath);
}else if(end.equals("txt")){
return getTextFileIntent(filePath,false);
return getAllIntent(filePath);
//获取一个用于打开APK文件的intent
public static Intent getAllIntent( String param ) {
Intent intent = new Intent();
intent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
intent.setAction(android.content.Intent.ACTION_VIEW);
Uri uri = Uri.fromFile(new File(param ));
intent.setDataAndType(uri,"*/*");
//Android获取一个用于打开APK文件的intent
public static Intent getApkFileIntent( String param ) {
Intent intent = new Intent();
intent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
intent.setAction(android.content.Intent.ACTION_VIEW);
Uri uri = Uri.fromFile(new File(param ));
intent.setDataAndType(uri,"application/vnd.android.package-archive");
//Android获取一个用于打开VIDEO文件的intent
public static Intent getVideoFileIntent( String param ) {
Intent intent = new Intent("android.intent.action.VIEW");
intent.addFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP);
intent.putExtra("oneshot", 0);
intent.putExtra("configchange", 0);
Uri uri = Uri.fromFile(new File(param ));
intent.setDataAndType(uri, "video/*");
//Android获取一个用于打开AUDIO文件的intent
public static Intent getAudioFileIntent( String param ){
Intent intent = new Intent("android.intent.action.VIEW");
intent.addFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP);
intent.putExtra("oneshot", 0);
intent.putExtra("configchange", 0);
Uri uri = Uri.fromFile(new File(param ));
intent.setDataAndType(uri, "audio/*");
//Android获取一个用于打开Html文件的intent
public static Intent getHtmlFileIntent( String param ){
Uri uri = Uri.parse(param ).buildUpon().encodedAuthority("com.android.htmlfileprovider").scheme("content").encodedPath(param ).build();
Intent intent = new Intent("android.intent.action.VIEW");
intent.setDataAndType(uri, "text/html");
//Android获取一个用于打开图片文件的intent
public static Intent getImageFileIntent( String param ) {
Intent intent = new Intent("android.intent.action.VIEW");
intent.addCategory("android.intent.category.DEFAULT");
intent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
Uri uri = Uri.fromFile(new File(param ));
intent.setDataAndType(uri, "image/*");
//Android获取一个用于打开PPT文件的intent
public static Intent getPptFileIntent( String param ){
Intent intent = new Intent("android.intent.action.VIEW");
intent.addCategory("android.intent.category.DEFAULT");
intent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
Uri uri = Uri.fromFile(new File(param ));
intent.setDataAndType(uri, "application/vnd.ms-powerpoint");
//Android获取一个用于打开Excel文件的intent
public static Intent getExcelFileIntent( String param ){
Intent intent = new Intent("android.intent.action.VIEW");
intent.addCategory("android.intent.category.DEFAULT");
intent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
Uri uri = Uri.fromFile(new File(param ));
intent.setDataAndType(uri, "application/vnd.ms-excel");
//Android获取一个用于打开Word文件的intent
public static Intent getWordFileIntent( String param ){
Intent intent = new Intent("android.intent.action.VIEW");
intent.addCategory("android.intent.category.DEFAULT");
intent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
Uri uri = Uri.fromFile(new File(param ));
intent.setDataAndType(uri, "application/msword");
//Android获取一个用于打开CHM文件的intent
public static Intent getChmFileIntent( String param ){
Intent intent = new Intent("android.intent.action.VIEW");
intent.addCategory("android.intent.category.DEFAULT");
intent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
Uri uri = Uri.fromFile(new File(param ));
intent.setDataAndType(uri, "application/x-chm");
//Android获取一个用于打开文本文件的intent
public static Intent getTextFileIntent( String param, boolean paramBoolean){
Intent intent = new Intent("android.intent.action.VIEW");
intent.addCategory("android.intent.category.DEFAULT");
intent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
if (paramBoolean){
Uri uri1 = Uri.parse(param );
intent.setDataAndType(uri1, "text/plain");
Uri uri2 = Uri.fromFile(new File(param ));
intent.setDataAndType(uri2, "text/plain");
//Android获取一个用于打开PDF文件的intent
public static Intent getPdfFileIntent( String param ){
Intent intent = new Intent("android.intent.action.VIEW");
intent.addCategory("android.intent.category.DEFAULT");
intent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
Uri uri = Uri.fromFile(new File(param ));
intent.setDataAndType(uri, "application/pdf");相关软件 /中文/ /中文/ /英文/ /中文/ /中文/ /中文/ /中文/ /中文/ /中文/ /中文/顶好评:50%踩坏评:50%请简要描述您遇到的错误,我们将尽快予以修正。轮坛转帖HTML方式轮坛转帖UBB方式
18.6M/英文/6.8
2.6M/中文/9.3
2.6M/中文/7.6
10.7M/中文/9.4
745KB/中文/6.3
2.6M/中文/8.5
18M/中文/9.0
《PPT遥控》是一款OlivePhone出品的一款用手机、平板来遥控播放ppt文件的神奇软件。它最大的优点是你无需在pc端额外装任和软件(包括微软office)即可在遥控播放PowerPoint。 功能特点 1、支持android,iOS平台。 2、无需PC端安装任何软件,包括微软office或者iworks。 3、通过wifi遥控PC播放Powerpoint。 4、支持.ppt和.pptx显示效果完美。 5、支持手绘,光标指示。 6、支持缩略图预览。
安卓官方手机版
IOS官方手机版
PPT遥控 1.0安卓中文版
下载帮助西西破解版软件均来自互联网, 如有侵犯您的版权, 请与我们联系。查看: 8752|回复: 3
有什么软件能看PPT文件
兑换券46 元
在线时间0 小时
木蚂蚁M点0
主题帖子积分
木蚂蚁小学二年级, 积分 101, 距离下一级还需 99 积分
木蚂蚁小学二年级, 积分 101, 距离下一级还需 99 积分
我手机是HTC的G10想下载能看幻灯片的软件
兑换券1005 元
在线时间129 小时
木蚂蚁M点0
主题帖子积分
试试金山WPS!或者其他办公软件!!很多!搜索就好!
兑换券0 元
在线时间2 小时
木蚂蚁M点0
主题帖子积分
木蚂蚁小学三年级, 积分 236, 距离下一级还需 264 积分
木蚂蚁小学三年级, 积分 236, 距离下一级还需 264 积分
兑换券1005 元
在线时间129 小时
木蚂蚁M点0
主题帖子积分
左少爷 发表于
11:27 救命啊!
乐于助人,经常为机友解决问题
推荐版块:
&nbsp&nbsp|&nbsp&nbsp
&nbsp&nbsp|&nbsp&nbsp
&nbsp&nbsp|&nbsp&nbsp
&nbsp&nbsp|&nbsp&nbsp
&nbsp&nbsp|&nbsp&nbsp
&nbsp&nbsp&nbsp&nbsp
&nbsp&nbsp
&nbsp&nbsp|&nbsp&nbsp
&nbsp&nbsp|&nbsp&nbsp
&nbsp&nbsp|&nbsp&nbsp
&nbsp&nbsp|&nbsp&nbsp
&nbsp&nbsp|&nbsp&nbsp
&nbsp&nbsp&nbsp&nbsp
&nbsp&nbsp
&nbsp&nbsp
&nbsp&nbsp
&nbsp&nbsp
&nbsp&nbsp
&nbsp&nbsp
&nbsp&nbsp
&nbsp&nbsp
&nbsp&nbsp
&nbsp&nbsp
&nbsp&nbsp
木蚂蚁官方微信:安卓手机有什么软件可以看PPT文件? - 百信手机论坛是最具人气的手机社区
查看:47545 | 回复:1
注册: 贴子: 18精华: 0积分: 0威望: 0财富: 0 百信券
我手机是HTC的G10想下载能看幻灯片的软件.求助啊
注册: 贴子: 494精华: 0积分: 0威望: 0财富: 0 百信券
你可以试试 金山WPS , 比其他office软件快很多  
分类:实用工具格式:apk大小:7575KB运行平台:Android软件性质:免费软件
软件介绍:& && &金山WPS Office手机版是金山公司推出的、运行于Android平台上的全功能办公软件,支持查看、创建和编辑各种常用Office文档,方便用户在手机和平板上使用,满足您随时随地办公的需求。选择Kingsoft Office的9个理由:- 国内同类产品排名第一,Google官方Android市场排名领先,用户遍布全世界200多个国家和地区;- 功能完全,永久免费;- 兼容性好,支持DOC/DOCX/WPS/XLS/XLSX/ET/PPT/PPTX/TXT等26种文件格式;- 运行稳定,界面美观,操作方便,文档打开速度在原基础上提升5倍;- 提供丰富的文档编辑功能;- 内置文件管理器,文档管理更加便捷有序;- 亲密集成邮件应用,随时随地发送办公文档;- 支持访问金山快盘及WebDAV协议的云存储服务;- 还有更多您所能想到或无法想到的在未来等着您……软件特色功能:* 文字处理:- 阅读模式与编辑模式自由切换- 包含丰富的格式功能,包括加粗、斜体、下划线、字体颜色、对齐方式、高亮显示、查找、缩放、全屏等- 支持显示页眉页脚、批注修订、图形对象、公式符号、DOC文档中的表格环绕效果等- 内置段落布局功能,支持标尺显示,段落缩进、段前后距离轻松设置- 文字段落可以在不同程序之间复制粘贴- 提供分页显示和网页显示两种排版方式- 选择文本时提供放大镜辅助定位功能- 支持云存储Box.net等WebDAV服务的文档上传和编辑后自动同步功能* 电子表格:- 包含筛选、排序、搜索、全屏阅读模式、窗口冻结等多种常用功能- 提供背板快速计算功能,实时显示选中区域的求和、平均、计数等常用计算结果- 支持显示雷达图、分离饼图、复合饼图、圆环图等62种图表格式,独创活动坐标轴查看功能- 支持连接蓝牙键盘和USB键盘,直接敲击键盘可进入编辑状态,使用轨迹球和键盘方向键可迅速选中单元格* 演示播放:- 兼容PC端缩略图显示模式,幻灯片切换快捷准确- 支持显示表格、图表等多种对象- 提供播放模式和激光笔显示功能* 整体功能- 浏览目录时,下拉页面可对目录进行刷新操作- 支持打开和查看加密的DOC/XLS文件,同时可保存DOC格式加密文档- 另存文件时可一键保存到快盘- 支持外接蓝牙和USB键盘- 通过照片墙形式对历史记录一览无遗- 可添加桌面小插件,文档浏览更加便捷更新介绍:改进:文档管理,可查看Google docs共享属性文档改进:文字处理,改进文档中绕排方式为上下型的图片的移动效果修复:文档管理,修复首页界面复制文档成功后,移动文档预览图出现的异常问题修复:演示播放,修复ppt文档另存后,再进行编辑并保存,文档自动关闭问题修复:演示播放,修复幻灯片大小比例为16:9,横屏播放或全屏显示时显示位置错误问题修复:电子表格,修复部分输入法页面显示错误的兼容问题改进:电子表格,改进键盘出现时,自动调整编辑单元格到可视区域
希望能够帮到你。在可以找到很多很好用的软件,游戏等资源。
参与 安卓手机有什么软件可以看PPT文件? 的讨论
您需要登录后才可以回帖
回帖后跳转到最后一页

我要回帖

更多关于 平板闪退解决办法 的文章

 

随机推荐