1

I have a file "info.docx" placed in Android assets folder. I need to load/display this file in webview. Is it possible? I tried urlWebView.loadUrl("file:///android_asset/info.docx"); but it displays a blank screen. Please help.

AndroidGuy
  • 1,270
  • 4
  • 15
  • 32

1 Answers1

0

WebView doesn't display Office documents. You can launch an intent for opening a doc file (see Android how to open a .doc extension file?), but the file itself in this case must reside in some location which is accessible to other apps (the assets of your file are not accessible to other apps).

Community
  • 1
  • 1
Mikhail Naganov
  • 6,643
  • 1
  • 26
  • 26