我怎么可以嵌入在PPT的WebView在Android上运行 [英] how can i embed ppt in webview to run on android

查看:249
本文介绍了我怎么可以嵌入在PPT的WebView在Android上运行的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我要创建我要跑个百分点,这将是在SD卡present一个Android应用程序。到目前为止,我得知道运行PPT的唯一办法就是要么调用它处理这个​​或嵌入在网页视图不同的应用。
在此先感谢


解决方案

您不能嵌入PPT,DOC,EXCEL等在网​​页视图的机器人。这些都是MS Office格式。你甚至不能做到这一点上与Firefox / Chrome的桌面PC。

修改结果
如果PPT在线,您可以使用谷歌文件文档转换为HTML比显示它:

<$p$p><$c$c>webview.loadUrl(\"http://docs.google.com/gview?embedded=true&url=http://myurl.com/mySlide.ppt\");

如果该PPT是SD卡上,或者:结果
a)在默认的手机应用程序中打开它。见<一href=\"http://stackoverflow.com/questions/6132931/how-to-use-an-intent-to-open-a-ppt-with-datavizs-documents-to-go\">How使用意图打开与DataViz公司的文件一个PPT To Go的结果
b)您需要将其转换事先HTML。有许多在线/离线工具这一点。谷歌的PPT到HTML转换

i want to create an android application in which i have to run ppt which will be present in sdcard. So far i have got to know that the only way to run the ppt is either calling different applications which deal with this or embed that in webview. Thanks in advance

解决方案

You cannot embed ppt, doc, excel etc in a Webview in android. Those are MS Office formats. You cannot even do that on a desktop pc with firefox/chrome.

EDIT
If the ppt is online you can use google docs to convert your document to html and than display it:

webview.loadUrl("http://docs.google.com/gview?embedded=true&url=http://myurl.com/mySlide.ppt");

If the ppt is on SD card, either:
a) Open it with default phone application. See How to use an intent to open a ppt with DataViz's Documents To Go
b) you need to convert it to html beforehand. There are many online/offline tools for that. Google "ppt to html converter"

这篇关于我怎么可以嵌入在PPT的WebView在Android上运行的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆