導航:首頁 > 操作系統 > 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相關的資料

熱點內容
三略pdf 瀏覽:582
spiflash單片機 瀏覽:9
阿里雲的域名怎麼解析到國外伺服器 瀏覽:281
app客戶端開發用什麼伺服器 瀏覽:289
台灣人能備案雲伺服器嗎雲空間 瀏覽:466
程序員小哥哥都喜歡動漫 瀏覽:372
如何用免費亞馬遜雲搭建伺服器 瀏覽:663
php評論功能實現代碼 瀏覽:526
犀牛中移動物件命令 瀏覽:786
程序員上班期間可以戴耳機嗎 瀏覽:255
伺服器啟動卡怎麼使用 瀏覽:794
逛了一天累趴了來一歌解壓句子 瀏覽:345
谷歌app在哪裡掃碼 瀏覽:989
華為手環加密門禁卡怎麼設置 瀏覽:732
pdf轉xlsx 瀏覽:96
nh3水溶液ph的演算法 瀏覽:483
pdf貓壓縮 瀏覽:49
數據挖掘分類演算法研究 瀏覽:101
河北航天發票認證伺服器地址 瀏覽:727
阿里程序員績效錄入 瀏覽:383