Hello all, In my app i am trying to open a pdf file through https on a server but it is not working (it only works for http )
Here is my code: Uri path = Uri.parse("https://ind.nl/Documents/5013.pdf"); Intent pdfIntent = new Intent(Intent.ACTION_VIEW); pdfIntent.setDataAndType(path, "application/pdf"); pdfIntent.setFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP); try{ startActivity(pdfIntent); }catch(ActivityNotFoundException e){ Toast.makeText(DvdActivity.this, "No Application available to view PDF", Toast.LENGTH_SHORT).show(); } I tried several different pdfs but all pdfs on https servers do not work. I would be very happy if you can help me. Regards, Marcel -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To unsubscribe from this group and stop receiving emails from it, send an email to android-developers+unsubscr...@googlegroups.com. To post to this group, send email to android-developers@googlegroups.com. Visit this group at https://groups.google.com/group/android-developers. To view this discussion on the web visit https://groups.google.com/d/msgid/android-developers/30666291-191d-402b-b79d-b46c1b74d985%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.