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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T15:45:31+00:00 2026-05-26T15:45:31+00:00

I am writing a camera application for Android, I want my application to be

  • 0

I am writing a camera application for Android, I want my application to be listed when video/photo is requested to be taken in applications like whatsapp messenger.

For example, in whatsapp when you click attach picture you can select the stock camera, or if I install vignette, I can use vignette.

How do I know which intent to listen to?

Thanks!

  • 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-26T15:45:31+00:00Added an answer on May 26, 2026 at 3:45 pm

    You need to use Intent Filter to do this.

        <activity android:name=".Activity" android:label="@string/app_name"  android:screenOrientation="portrait">
            <intent-filter>
                <action android:name="android.intent.action.SEND" />
                <category android:name="android.intent.category.DEFAULT" />
                <data android:mimeType="image/*" />
            </intent-filter>
        </activity>
    

    If you add the Intent Filter with Data , category and data as given above , it will ask for Application if you need to share some Photos say Share Image outside of Application from image Gallery.

    If you Select you application it will Redirect the Control to your Activity.

    Inside you Activity you handle your Intent by using :

    try{
            Uri imageUri = (Uri) getIntent().getExtras().get(Intent.EXTRA_STREAM);
            Cursor cursor = getContentResolver().query(imageUri, new String[] { android.provider.MediaStore.Images.ImageColumns.DATA }, null, null, null);
            cursor.moveToFirst();
        }catch(Exception e){
            Log.v("Exception eeee", ""+e);
        }
    

    Now cursor will contains your selected image.

    This is for Image chooser, you can use same for Video ,needed to change the mimitype in Manifest file of Intent Filter.

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

Sidebar

Related Questions

I am writing an application that needs pictures taken with the camera. The problem
I'm writing an Android application that uses the camera. I'm setting camera display orientation
I'm writing a custom camera application which follow this tutorial: http://marakana.com/forums/android/examples/39.html Now I'm able
I'm writing an application which will display the current image seen by a camera
I am writing a PhoneGap application to work on Android initially. I am writing
I'm writing an application that allows users to upload photos from their camera roll
I'm writing an application where I'd like to offer the user the option to
I have a bit of experience writing OpenGL 2 applications and want to learn
I am trying to implement Camera application in android,and i got some code from
I am currently writing an application that read frames from camera, modify them, and

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.