user493244
user493244

Reputation: 919

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.

Upvotes: 16

Views: 9622

Answers (3)

atrivedi
atrivedi

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

Saurabh Pareek
Saurabh Pareek

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

Tofeeq Ahmad
Tofeeq Ahmad

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

Related Questions