導航:首頁 > 操作系統 > android分享ppt

android分享ppt

發布時間:2022-08-21 15:52:50

android 代碼打開ppt文件有什麼辦法

工具/原料

Android
android 代碼打開ppt文件有什麼辦法

1
很簡單,通過調用系統的intent,我們可以打開各種文件,不熟悉的朋友可以了解下action、datatype、uri的相關知識。
通用方法如下:
2
public static Intent openFile(String filePath){

File file = new File(filePath);
if(!file.exists()) return null;
/* 取得擴展名 */
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);
}else{
return getAllIntent(filePath);
}
}
3
//Android獲取一個用於打開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,"*/*");
return intent;
}
4
//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");
return intent;
}
//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/*");
return intent;
}
//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/*");
return intent;
}
//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");
return intent;
}

//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/*");
return intent;
}
//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");
return intent;
}
//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");
return intent;
}
//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");
return intent;
}
//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");
return intent;
}
//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");
}else{
Uri uri2 = Uri.fromFile(new File(param ));
intent.setDataAndType(uri2, "text/plain");
}
return intent;
}
//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");
return intent;
}

㈡ 蘋果電腦製作的ppt怎麼發送到安卓手機上打不開,怎麼樣能打開。改格式也不行。

看看你製作的ppt後綴名是什麼,如果是.key那肯定打不開,需要回到蘋果電腦上用 keynote打開,導出成.ppt或者.pptx才行。

㈢ 安卓盒子里有可以播放ppt的app嗎

小米盒子可以播放PPT。 需要將PPT拷貝到盒子里或者連接u盤。 有兩種方法播放ppt: 安裝安卓版wps,然後在小米盒子上播放ppt,沒試過,按說可以通過遙控器控制。 打開小米盒子的miracast,然後在手機上播放ppt,共享播放到小米上,這種情況控制是在手機上進行的

㈣ 怎麼在安卓手機上播放帶視頻的PPT

手機office畢竟還只是個基礎功能,目前達不到播放視頻的水平,您可以手機下載萬能播放器播放ppt裡面的視頻文件的,ppt裡面視頻文件需要單獨提取播放

安卓系統怎樣播放ppt文件

播放ppt文件需要第三方文檔處理類軟體的支持
常用的有quick office
Document to Go
wps for android
辦公套件等
都是免費的 都不錯 LZ看喜好下一個就行

㈥ android開發:播放ppt

這牽涉到解碼的問題,很復雜,現在已有的辦公軟體只做到了能播放,不能做到有動畫。這還是個大工程,暫時解決不了,希望你能研究明白告訴我一聲,我也開開眼。。。

祝你成功

㈦ 用手機wps做的ppt怎麼發給別人

手機如何修改和發送PPT文件
如果電腦不在身邊,查看和編輯PPT演示文件是很不方便的,今天給大家講解如何用手機修改和發送PPT演示文件。
開啟分步閱讀模式
操作方法
01
首先在手機上下載安裝「wps」。然後打開。

02
在wps中點擊自己需要修改的PPT演示文件。

03
打開演示文件後,點擊手機左上角的「編輯「,如圖所示。

04
待編輯完成後,點擊手機左下角的選項卡。

05
然後在出現的列表中點擊"分享與發送「。

06
然後點擊以文件發送。

07
在出現的發送列表中選擇想要發送的程序,這里我們以QQ為例。

08
進入QQ後,我們選擇好友或者發送到我的電腦,這里我們以發送到」我的電腦「為例,然後確定發送,顯示發送成功。

QQ APP
本頁搜狗指南內容僅供參考,請您根據自身實際情況謹慎操作。尤其涉及您或第三方利益等事項,請咨詢專業人士處理。

0無幫助
大家都在搜
在手機上如何修改ppt
手機修改ppt用什麼軟體
手機上面怎麼修改ppt
手機wps怎麼修改ppt文件
手機上的ppt名稱怎麼修改
ppt文件怎麼修改編輯
手機怎麼修改ppt內容
ppt里的文字怎麼修改

相關推薦

手機如何修改和發送excel文件

紫蝴蝶
游戲/數碼

手機如何使用藍牙發送文件

東方不敗
游戲/數碼

手機如何發送文件到電腦?

雨一直下
游戲/數碼

android手機怎樣通過藍牙發送文件和接受文件

芳草
游戲/數碼

如何修改和編輯PPT母版

追風少年
游戲/數碼

2020年大專函授文憑查詢

廣告
正在載入
操作方法

01/08
操作方法
點擊目錄可快速跳轉至頁面對應位置
01首先在手機上下載安裝「wps」。然後打開。
02在wps中點擊自己需要修改的PPT演示文件。
03打開演示文件後,點擊手機左上角的「編輯「,如圖所示。
04待編輯完成後,點擊手機左下角的選項卡。
05然後在出現的列表中點擊"分享與發送「。
06然後點擊以文件發送。
07在出現的發送列表中選擇想要發送的程序,這里我們以QQ為例。
08進入QQ後,我們選擇好友或者發送到我的電腦,這里我們以發送到」我的電腦「為例,然後確定發送,顯示發送成功。

㈧ 安卓手機有可以播放ppt的軟體嗎

安卓智能機是可以下載播放ppt文件的軟體的,具體方法為:
1、在安卓市場或者其他app商城下載wps等ppt播放軟體。
2、安裝後在設置里可以導入或下載ppt。
3、也可以自己新建製作ppt。

㈨ 安卓系統怎麼導入PPT文件啊,系統里原來沒有,想從電腦里導入到手機,請高手幫忙解答下,感激,很急

直接把文件放到SD卡中。
如果要在手機上閱讀PPT文件
可以下載一個軟體。Documents to go

㈩ 安卓系統如何使用PPT

1.5以上的系統可以找到很多,word、excel和ppt可以用Kingsoft Office(金山的wps),Documents To Go,google doc,open office,quick office……太多了

閱讀全文

與android分享ppt相關的資料

熱點內容
豫劇戲曲電影100部 瀏覽:650
笨辦法學python3習題38 瀏覽:963
免費看輕小說 瀏覽:14
粉筆app的錯題在哪裡找 瀏覽:55
現代一女多男 瀏覽:90
極限開方運演算法則的證明 瀏覽:811
圖片小說電影在線觀看 瀏覽:595
android屏幕物理尺寸 瀏覽:340
刺蝟貓主角是英靈的小說 瀏覽:671
小米電視網路無法連接到伺服器地址 瀏覽:536
設備與隱私怎麼加密 瀏覽:707
單片機做電腦鍵盤 瀏覽:292
我的世界伺服器怎麼幫玩家注冊賬號 瀏覽:647
火辣的女人們電影李采潭 瀏覽:997
專門看歐美片的網址 瀏覽:5
顏氏家訓pdf 瀏覽:260
linux生成uuid 瀏覽:633
java方法調用自己 瀏覽:250
韓國電影愛人結局 瀏覽:301
大尺度電影耽美 瀏覽:21