Reputation: 919
Are there classses in Android that can open different kind of files like pps, ppt, docs, rtf, etc.?
Please provide links.
Upvotes: 16
Views: 9622
Reputation: 358
WebView mWebView = (WebView) findViewById( R.id.WebView01);
String pdfurl = ""; // Url of pdf or doc file.
String weblink="http://docs.google.com/gview?embedded=true&url="+pdfurl;
mWebView.loadUrl(weblink);
Upvotes: 6
Reputation: 7134
No, there is no native API provided by android, you can use some third party APIs to read pdf and all.
Upvotes: 4
Reputation: 11975
Some of them can open using default activity with ACTION_VIEW
. For other we have to external API to open them. But i am not sure which one will definitely open using ACTION_VIEW but you can give a try to them by using URI.
But most important thing as Saurabh Pareek said there is not native classes in android
Upvotes: 0