How to open MS Office files in Android [duplicate]

我只是一个虾纸丫 提交于 2019-12-10 14:01:02

问题


Possible Duplicate:
Android Microsoft Office Library (.doc, .docx, .xls, .ppt, etc.)

I have been searching for an API for android to open and view .doc, .ppt, .docx or .pptx.

I'm sure there should be one as there exist applications that can open these file format. I have found apache POI but it uses java awt which is not a part of android.

Even an API to convert these file format to .pdf will be useful.


回答1:


There isn't a standard API for opening office files in Android. The applications you've found use an internal API for reading the files. They either do this in the device or they upload the file to a server, which is responsible for parsing the file and convert it to a format that is easier read from the Android client.




回答2:


You can only do so if your phone comes with an application such as Quickoffice, and in those cases, you will be opening it in that application through your application.

How to render PDF in Android

Android Microsoft Office Library (.doc, .docx, .xls, .ppt, etc.)



来源:https://stackoverflow.com/questions/6250472/how-to-open-ms-office-files-in-android

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!