From what I’ve read its possible if you do it via WebView. The thing is I need to grab the file locally, I don’t have internet connection. How can I use WebView to display the document offline? Code example would help!
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
You can’t. The only way to use
WebViewto view a document format like that is to upload it to some service like Google Docs.WebViewcannot directly display DOCX any more than it can directly display Photoshop PSD files.You are welcome to open the document in third-party Android apps that support DOCX format, offering to help users install one from the Play Store if they do not already have one. This is free for you and fairly easy to implement.
Otherwise, I hope you have a hundred developer-years or so to write your own DOCX parser and renderer.