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
-2
votes
2 answers

Not set image from camera to imageview in android

I am trying to display a image captured from camera inside imageview in android Selecting a photo from the correct gallery works But the camera fails: "app has stopped" images.get(2).setOnClickListener(new View.OnClickListener() { …
hassan abbasi
  • 123
  • 1
  • 1
  • 9
-2
votes
2 answers

Rotate image taken from camera or gallery

I am capturing image from camera and selecting image from gallery. In samsung devices the images gets rotate after captured. I want to rotate image to straight if they are rotated. I tried to do it but its not working. I am getting EXIF orientation…
Sid
  • 2,792
  • 9
  • 55
  • 111
-2
votes
1 answer

Android camera intent losing reference of Imageview in Lollipop

I have an activity in which i am calling intent of camera on click, but when I capture image and get back to the activity result my Image view reference is null. I am getting URI correctly. This happens in android Lollipop. Intent captureIntent =…
-2
votes
1 answer

How to stop camera Opened by an Intent

I need to show a Alert dialog on camera screen to ask for continue or exit camera. I used a system dialog, it open on camera screen, on continue i close the dialog, but on exit i need to close the camera screen and back to my app. I'm using this…
Ankit
  • 483
  • 7
  • 24
-2
votes
1 answer

How do I set this program up to use internal storage instead of external (android)

I found this program online and want to replace the part where it creates a new file to an external storage with creating a new file to internal storage. Please, if you know the answer, can you tell me the exact code to write. I've read other…
AbhishekSaha
  • 705
  • 3
  • 9
  • 24
-3
votes
1 answer

Take Picture and Upload to Android Firebase Error

I'm write a simple code to instant camera image capture and upload it to android firebase. From Referance Here Try to write full code as android studio documentation. But in logcat we can show this code occur an error uri.getLastPathSegment(). How…
Sheikh Hasib
  • 7,423
  • 2
  • 25
  • 37
-3
votes
2 answers

Android confused on using camera to take photo in app and send extra Intent

I am trying to implement a feature if someone takes a picture it replaces the picture on the final page source image with theirs. my demo program worked fine, but I am having trouble with the actual program I want to implement the feature in. I am…
Bazz
  • 34
  • 8
-3
votes
4 answers

Capture Image from Fragment

I need to capture an image from the camera and I need to do it from inside a Fragment. My problem is that onActivityResult is never called. Below is my code: private void dispatchTakePictureIntent(){ Intent intent = new…
-4
votes
1 answer

Clicking Image and showing it in ImageView

I am clicking Image and showing it in ImageView. below is my code. Below code execute when permission is granted. private void clickImage() { Intent intent = new Intent(MediaStore.ACTION_IMAGE_CAPTURE); imageFile = new…
Deepak nigam
  • 99
  • 1
  • 15
-5
votes
1 answer

Is there a way to launch a custom application in android whenever any camera application captures an image

Let me clarify this first, this isn't anything similar to asking whether or not I can make my own camera application to capture and process an image however I want. What I want is to devise an application which gets launched in background whenever…
-6
votes
2 answers

How to get front camera captured images path

I want to fetch only front camera captured images. Is there any intent or media function which give me all images path whose captured by front camera (selfie camera) Thanks in advance.
Jatinkumar Patel
  • 1,094
  • 2
  • 17
  • 34
1 2 3
64
65