是否有意向用于查看文档(Word,Excel和PowerPoint,PDF等)的Android? [英] Is there an Intent for viewing documents (Word, Excel, Powerpoint, PDF, etc.) in Android?
问题描述
可能重复:
<一href="http://stackoverflow.com/questions/2923265/android-how-do-i-open-another-app-from-my-app">android:如何从我的应用程序打开另一个应用程序?
有没有意向,以查看Android的文件如Word文档(.doc),Excel工作表,简报文稿(.ppt),PDF等?
Is there an Intent to view files such as word document (.doc), excel sheet, powerpoint (.ppt), pdf, etc. in Android?
推荐答案
所有你能做的就是,发出指定的MIME类型的意图。 Android将处理哪些应用程序(s)是能够将其打开。
All you can do is, emit intent of specified MIME type. Android will handle what application(s) is capable to open it.
像这样的解决方案应该工作:<一href="http://stackoverflow.com/questions/4775295/how-to-view-ms-office-files-in-an-android-application">How以查看Android应用程序MS Office文件?
Something like this solution should work: How to view MS office files in an android application?
这篇关于是否有意向用于查看文档(Word,Excel和PowerPoint,PDF等)的Android?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!