Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <blockquote> <p>I have to open it using the browser.</p> </blockquote> <p>I am not aware of any Web browser on the face of the planet, other than perhaps Internet Explorer, that is capable of natively displaying Microsoft Word documents. I am not aware of any Web browser for Android that is capable of natively displaying Microsoft Word documents.</p> <p>With regards to your Java source code snippet:</p> <ul> <li><code>text/html</code> is not the MIME type for Microsoft Word.</li> <li>Never hardcode paths like <code>/sdcard</code>, particularly since it is wrong for many devices. Use <code>Environment.getExternalStorageDirectory()</code> to get at the root of external storage.</li> <li>Just creating an <code>Intent</code> will do you little good. If you want to display a Word document using some document viewer that the user might have installed, you would need to use <code>ACTION_VIEW</code> in the <code>Intent</code> constructor, then set the path/type as you are doing, then call <code>startActivity()</code>.</li> </ul> <blockquote> <p>in the manifest file i wrote:</p> </blockquote> <p>I have no idea why this is here. It certainly has nothing obvious to do with your Java code snippet, and it has nothing obvious to do with this question.</p> <blockquote> <p>I have to open the ValidateLibrary.doc file inside a browser. How do i do that?</p> </blockquote> <p>Step #1: Write a Web browser.</p> <p>Step #2: Augment your Web browser to be able to display Microsoft Word documents. This may involve you having to license some patents and will probably take a few developer-decades to write.</p> <p>Step #3: Convince users to install your Web/Word browser.</p> <p>It would be simpler for you to simply start up an <code>ACTION_VIEW</code> <code>Intent</code> on the Word document, then direct users to the Market to install some third-party application that handles Word documents if the user does not have one installed.</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload