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