How Can We Open Files Like Ppt, Doc, Pps, Rtf, Etc. In Android?
Are there classses in Android that can open different kind of files like pps, ppt, docs, rtf, etc.? Please provide links.
Solution 1:
WebViewmWebView= (WebView) findViewById( R.id.WebView01);
Stringpdfurl=""; // Url of pdf or doc file.
String weblink="http://docs.google.com/gview?embedded=true&url="+pdfurl;
mWebView.loadUrl(weblink);
Solution 2:
No, there is no native API provided by android, you can use some third party APIs to read pdf and all.
Solution 3:
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
Post a Comment for "How Can We Open Files Like Ppt, Doc, Pps, Rtf, Etc. In Android?"