Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8246247
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 7, 20262026-06-07T22:26:41+00:00 2026-06-07T22:26:41+00:00

I want to open pdf file using installed adobe reader. I tried in the

  • 0

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!

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-07T22:26:44+00:00Added an answer on June 7, 2026 at 10:26 pm

    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

    intent.setPackage("com.adobe.reader");
    

    I used

    intent.setClassName("com.adobe.reader", "com.adobe.reader.AdobeReader");
    

    don’t forget to start activity in try catch block, it helps when adobe reader not installed on Device. Please check the below snippet.

    try {
        Intent intent = new Intent();
    
        intent.setClassName("com.adobe.reader", "com.adobe.reader.AdobeReader");
        intent.setAction(Intent.ACTION_VIEW);
        intent.setDataAndType(Uri.fromFile(doc), "application/pdf");
        startActivity(intent);
    
       } 
       catch (ActivityNotFoundException activityNotFoundException) {
        activityNotFoundException.printStackTrace();
        }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I want to open a pdf file from DWR call. I am using DWR
want to open pdf file when a user clicks on hyperlink shown in gridview
I want to open pdf file in webview but the scenario is different here,
I want to open a document file using Open Xml Open Method, search for
I want to open any file type by using the code below: System.Diagnostics.Process.Start(pathFile); Is
I want to open a PDF file from a jsp. The jsp and the
I want to force the browser to download a pdf file. I am using
I want open pdf file directly without asking open,save options(prompt window).In this temppath is
I'm using the following code to read the content of a PDF file: string
I am creating dynamically a PDF file. After creating I want to open the

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.