I want to open pdf file using installed adobe reader. I tried in the following way to prevent “Complete action using” menu.
Intent intent = new Intent();
intent.setPackage("com.adobe.reader");
intent.setDataAndType(Uri.fromFile(doc), "application/pdf");
startActivity(intent);
Using the above code i managed to reduce the list size to 2. Is there any way to avoid showing context menu (Complete action using).
Thank you!
I would like to thanks every one who tried to answer this question. After some browsing i found solution for my Question. which is perfectly working for me.
instead of using
I used
don’t forget to start activity in try catch block, it helps when adobe reader not installed on Device. Please check the below snippet.