How do I open a file externally?
<p>I have files like .doc .pdf .excel... and i want to open them externally.</p>

<p>I tried intent.ACTION_VIEW but it open it in the browser.</p>

<p>How can I open them with which ever application the user has as a default handler?</p>

<pre><code>File file = new File(Globals.SAVE_PATH + filename);
openFile(file.toURI());


public void openFile(URI uri) {
        Intent i = new Intent(?????);
        i.setData(Uri.parse(uri.toString()));
        startActivity(i);
    }
</code></pre>
