I want to open pdf file from url, so I used this code:
Intent browserIntent = new Intent(Intent.ACTION_VIEW);
browserIntent.setDataAndType(Uri.parse(string), "application/pdf");
startActivity(browserIntent);
It's worked when the protocol is http, but not working if the protocol is https
, I got error ActivityNotFoundException
, any idea to fix this?