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 7616923
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 31, 20262026-05-31T03:00:39+00:00 2026-05-31T03:00:39+00:00

Thanks for previous replies, Is it possible to get Package name of camera application

  • 0

Thanks for previous replies,

Is it possible to get Package name of camera application which is installed on the device? If the OS is customized the default package name is changed by the device manufacturer. How can I get the package name through coding ? I am not sure this will be possible.

  • 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-05-31T03:00:40+00:00Added an answer on May 31, 2026 at 3:00 am

    I am not sure, but I think you can get package name of application using specified intent..

    Look at this code for getting available application information which handle the specific intent,

    /**
     * Indicates whether the specified action can be used as an intent. This
     * method queries the package manager for installed packages that can
     * respond to an intent with the specified action. If no suitable package is
     * found, this method returns false.
     *
     * @param context The application's environment.
     * @param action The Intent action to check for availability.
     *
     * @return True if an Intent with the specified action can be sent and
     *         responded to, false otherwise.
     */
    public static boolean isIntentAvailable(Context context, String action) {
        final PackageManager packageManager = context.getPackageManager();
        final Intent intent = new Intent(action);
        List list =
                packageManager.queryIntentActivities(intent,
                        PackageManager.MATCH_DEFAULT_ONLY);
        return list.size() > 0;
    }
    

    Now using Camera intent you can get the application information which handles the IMAGE_CAPTURE intent and using that information you can easily get package name.

    Update:

    In your case the specific intent is

    Intent intent = new Intent(android.provider.MediaStore.ACTION_IMAGE_CAPTURE);
    

    EDIT:

    List<ResolveInfo> listCam = packageManager.queryIntentActivities(intent, 0);
    for (ResolveInfo res : listCam) {
        Log.e("Camera Application Package Name and Activity Name",res.activityInfo.packageName + " " + res.activityInfo.name));
    }
    

    Try this and let me know what happen..

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Thanks for previous replies I am doing application with android inbuilt voice recorder. i
Thanks for previous replies, is it possible to delete the stored content from sqlite
Thanks for previous replies, I want to release my apk in android market, actually
Thanks for previous replies, I tried to check the data connection through code, I
Hello all Thanks for your previous replies hey i am unable to install the
Thanks for previous replies. I am parsing XML file using java(SAXParser), i am not
Thanks for previous replies, How to compare String with ListArray, and whenever the string
Thanks for the previous replies. I am new to Magento and don't know how
Since I didn't get any replies in my previous question I will try to
Thanks to suggestions from a previous question , I'm busy trying out IronPython, IronRuby

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.