Are there classses in Android that can open different kind of files like pps, ppt, docs, rtf, etc.?
Please provide links.
You can open and convert Rich Text files (RTF) in almost any text editor or word processor, including Microsoft Word and Google Docs. If you have an RTF file on your Android, iPhone, iPad, or Chromebook, just upload it to Google Drive and click to open it.
Launch the Cool Reader app and tap on the icon below Browse file system. Navigate to the folder where the RTF file is stored on your Android device and tap on it. Cool Reader will now open the file. That's it!
You need to use other application to open your ppt files , Make sure that file location you are providing is accessible to other application. Try with following : final Uri uri = Uri. fromFile(file); final Intent intent = new Intent(Intent.
The easiest way to open an RTF file in Windows is to use WordPad since it's pre-installed. If you're on a Mac, Apple TextEdit or Apple Pages can be used. Double-clicking the file should be all you need to do to trigger one of those programs to open it.
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);
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With