I have files like .doc .pdf .excel... and i want to open them externally.
I tried intent.ACTION_VIEW but it open it in the browser.
How can I open them with which ever application the user has as a default handler?
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);
}