Questions tagged [android-camera-intent]

Questions related about calling the camera app from the local device, without the camera permission.

The camera intent is a way to make photos or videos with the camera app of the device without implementing a custom camera activity.

Here is a basic example for such a call:

// create Intent to take a picture and return control to the calling application
Intent intent = new Intent(MediaStore.ACTION_IMAGE_CAPTURE);

fileUri = getOutputMediaFileUri(MEDIA_TYPE_IMAGE); // create a file to save the image
intent.putExtra(MediaStore.EXTRA_OUTPUT, fileUri); // set the image file name

// start the image capture Intent
startActivityForResult(intent, CAPTURE_IMAGE_ACTIVITY_REQUEST_CODE);

See the full code on the documentation.

971 questions
0
votes
1 answer

Android camera intent staying on capture after clicking save button

I tried to capture video using camera intent and gets the video in onActivityResult. Its working fine except for certain situations. When i capture video for a long time in certain phones, and when i click save button, it returns to the camera…
Elezabeth Mathew
  • 161
  • 2
  • 14
0
votes
1 answer

Processing an Android camera-intent Bitmap image in OpenCV (needs conversion to Mat object)?

I am trying to process a bmp image obtained from Android's camera intent through the following steps: Obtain bmp image from intent Convert bmp image to Mat object for OpenCV processing (problem starts here) Do needed OpenCV processing (through…
Noha Kareem
  • 1,748
  • 1
  • 22
  • 32
0
votes
1 answer

Android Training: Taking photos simply

Maybe it's a compatibility issue or I'm missing something, but the example code for PhotoIntentActivity in the "Taking photos simply"-tutorial isn't working for me. When I take a big picture, the function handleBigCameraPhoto() never actually sets…
blub
  • 8,757
  • 4
  • 27
  • 38
0
votes
1 answer

Can Android camera intent specify pictureSize?

From my current search, Android camera intent can not specify pictureSize. Since my app needs to be fast, I do not want to save a large size picture in sd card, then load it to a small size of Bitmap. I think it takes time. Plus, I need a gray scale…
user1914692
  • 3,033
  • 5
  • 36
  • 61
0
votes
1 answer

Android: overriding an intent's option menu

Suppose i wrote a camera app by using and intent(MediaStore.ACTION_IMAGE_CAPTURE) and i notice that when i run the app, the option menu displays "Edit shortcuts", how can i add on to this option menu or completely override the option menu to my…
0
votes
1 answer

Android Camera Effects Not Working

I'm trying to build an image editing app for android and I've just started and already I'm having trouble. Well I can take a picture and save to the sd card. But i try to do some effects the app is running but the effects don't show up in the…
0
votes
1 answer

Open an image saved in SD card with option to crop it as in Gallery to apply as wallpaper

I have a application where I have some downloaded images in a folder in SD Card. I want to save it as a wallpaper. using the below code user can set it as wallpaper. WallpaperManager myWallpaperManager =…
Vinod
  • 31,933
  • 35
  • 96
  • 119
0
votes
1 answer

Move Image Taken With Camera Leaves Broken Link Unitl SD Card Remount

I have an application in which I can use the device's camera to take a picture. What I would like to do is to start the ACTION_IMAGE_CAPTURE intent without assigning an EXTRA_OUTPUT, and then move the file that is created in the default location to…
Dave
  • 1,250
  • 1
  • 16
  • 32
0
votes
1 answer

change ImageVIew by Capture

here the question I want Change Imageview named cameraView I use startActivityforResult But it doens't work. I already write permissions it needs. ImageView doens't change my whole code is http://pastie.org/5340010
0
votes
1 answer

Get Location of Saved Camera Picture

Okay, so I have an onclick on a button that opens the camera, when I take a picture and save it how do I get the file name+location of where it was saved to open it in my app? Here is my button click Button btncamera =…
Get Off My Lawn
  • 34,175
  • 38
  • 176
  • 338
0
votes
3 answers

Android: Get photo path after capturing photo from camera throw cameraIntent

I am using camera Intent to open the camera: Intent cameraIntent = new Intent(MediaStore.ACTION_IMAGE_CAPTURE); startActivityForResult(cameraIntent, CAMERA_REQUEST); Now I am trying to get the path of the captured photo but its throwing…
Vinit ...
  • 1,409
  • 10
  • 37
  • 66
0
votes
3 answers

stuck on image capture screen ,can't get back to onActivityResult (Android)

I Have a activity that opens the Camera by starting ACTION_IMAGE_CAPTURE Intent: Intent intent = new Intent( android.provider.MediaStore.ACTION_IMAGE_CAPTURE); SimpleDateFormat dateformat = new SimpleDateFormat("ddMMyy"); File…
0
votes
1 answer

Triggering 'take picture' command pragmatically in Android

I want to trigger the 'take picture' command of the default camera application from my application. Application is supposed to take pictures at moments when the algorithm decides to take them. That means anyone does not touch the screen or press…
Optimus
  • 415
  • 4
  • 19
0
votes
1 answer

Start Intent for Result - Camera intent for images only?

I have an app that a user will be able to take pictures with. Having the camera is a small, but necessary feature but I want it to only be able to take pictures (no video). Is there a way I can make it startIntentForResult with a pictures-only…
snotyak
  • 3,709
  • 6
  • 35
  • 52
0
votes
1 answer

Uploading video from phone

I have a website where the user of my application can upload a video from the Android Gallery. I want to make it so that when the user opens the file chooser it has an option to record a video and upload it from the Androids stock camera. Is this…