diff --git a/src/android/FileOpener.java b/src/android/FileOpener.java index 0cfc8bb..a006d8a 100644 --- a/src/android/FileOpener.java +++ b/src/android/FileOpener.java @@ -108,8 +108,8 @@ private void openFile(String url) throws IOException { intent = new Intent(Intent.ACTION_VIEW); intent.setDataAndType(uri, mimeType); } - - this.cordova.getActivity().startActivity(intent); // TODO handle ActivityNotFoundException + Intent fileChooser = Intent.createChooser(intent, "Open File"); + this.cordova.getActivity().startActivity(fileChooser); // TODO handle ActivityNotFoundException } }