From 26d3571ddf05a66faad29c22ed07238014308bed Mon Sep 17 00:00:00 2001 From: SteamWind Date: Tue, 4 Feb 2014 11:36:12 +0100 Subject: [PATCH] Update FileOpener.java A added the intent of open an apk application. --- src/android/FileOpener.java | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/android/FileOpener.java b/src/android/FileOpener.java index 0cfc8bb..f9becb7 100644 --- a/src/android/FileOpener.java +++ b/src/android/FileOpener.java @@ -90,7 +90,13 @@ private void openFile(String url) throws IOException { // Video files intent = new Intent(Intent.ACTION_VIEW); intent.setDataAndType(uri, "video/*"); + } else if(url.contains(".apk")) { + // Application files + intent = new Intent(Intent.ACTION_VIEW); + intent.setDataAndType(uri, "application/vnd.android.package-archive"); } + + //if you want you can also define the intent type for any other file