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

Application crashed after captured image using camera android

i thought this problem already asked so many times, but honestly i still stuck. i have follow the solution at this Camera Force Closing issue in Samsung Galaxy S3 version 4.1.1, but my app still force close. here is my code : Intent captureImage =…
bohr
  • 631
  • 2
  • 9
  • 29
0
votes
3 answers

Is there a way to get the users current Flash settings (for the camera) in Android?

Can we get the flash settings from the native camera app programmatically? I mean to say, for example, if the user meddles with the flash modes in the default camera app, I want to read the flash mode set by him on my app, which is to run in the…
SoulRayder
  • 5,072
  • 6
  • 47
  • 93
0
votes
2 answers

NullPointer on onActivityResult

Working with cameras, I have a option that lets users take photos as well as browse photos from their gallery. The image is then loaded in the app screen. The problem I am having currently is with the take photos option. The take photos option…
Rakeeb Rajbhandari
  • 5,043
  • 6
  • 43
  • 74
0
votes
1 answer

Taking photo from camera works fine in portrait mode but in landscape mode gives Exception

In my application I take photo from the camera and display in an ImageView. This works perfectly fine when in portrait mode but when I use the app in landscape mode after taking the photo from the camera the moment the "Done" Button of camera is…
0
votes
1 answer

Trying to save photo taken by camera, but app crashes

I'm trying to use the built in camera app to take a picture and save it. It works fine if it just takes a p[icture. When I add the copde to save the pictures, the camera app crashes when I exit from it code takePictureIntent = new…
Ted pottel
  • 6,869
  • 21
  • 75
  • 134
0
votes
0 answers

unknown numeric string in picture files name

I am creating jpg images with the camera intent but I can't name them as I would like. I'm using the following code: private File createImageFile() throws IOException { // Create an image file name String timeStamp = new…
user1638466
  • 300
  • 1
  • 5
  • 18
0
votes
1 answer

Android bitmap redraw

In my app I take picture from camera and preview it. My app takes picture in landscape mode so that I changed it to portrait mode using exifInterface but I get stretched image. How can I redraw my Image with out stretched image from the bitmap. if I…
M.A.Murali
  • 9,988
  • 36
  • 105
  • 182
0
votes
1 answer

Android camera Intent not saving in gallery

I am creating a simple application which takes pictures using the camera intent. It works and the pictures are being saved in : storage/emulated/sd/pictures/my_folder . The problem is that I can't see those pictures from the Android Gallery app. I…
user1638466
  • 300
  • 1
  • 5
  • 18
0
votes
1 answer

Web View Camera capture option

I am new on android and I have developed an application using web view , right now when I upload any image it take me to gallery I want an pop up when it shows me two buttons with title "gallery" and "camera " so if I click on gallery it will take…
0
votes
2 answers

Camera intent result image size

Intent(MediaStore.ACTION_IMAGE_CAPTURE) I am taking picture through this. I am able to get the camera picture from onActivityResult I need the picture size to be smaller ( custom defined if possible ) That is the camera app should give me an image…
nullUser
  • 1,159
  • 2
  • 15
  • 26
0
votes
1 answer

detect the source for an image from camera android

I am using this method to get an image: protected void openImageSelection(int intentCode, Uri fileUri) { // Camera. final List cameraIntents = new ArrayList(); final Intent captureIntent = new…
mestrebisli
  • 83
  • 1
  • 8
0
votes
1 answer

Activity result from org.cyanogenmod.focal

I currently use this code to call the camera activity with a result which works fine. Intent intent = new Intent(MediaStore.ACTION_IMAGE_CAPTURE); intent.putExtra(MediaStore.EXTRA_OUTPUT,…
stackdaddy
  • 111
  • 1
  • 10
0
votes
1 answer

implicit intent for camera capture in android

I am facing a very weird issue. I have an implicit intent for opening the default camera. There is an image view with a camera icon, which when clicked opens the default camera. Sometimes on clicking the imageview, opens the camera but sometimes it…
0
votes
2 answers

Can't see pictures saved in a specific folder

My app uses the phone camera to take pictures and save them in a specific folder. I can't see them with Android Gallery or plugging into my pc, but I can using a file manager app. I found a solution to this: I rename pictures with a file manager app…
0
votes
2 answers

make bitmap using camera intent large

My camera intent bitmap is only 160x120 i think how can i achieved full size bitmap btw i tried EXTRA_OUTPUT but I dont know how to use it i have 2 class and my main class onActivityResult is this case CAMERA_REQUEST_CODE: if (resultCode ==…
RonPelayo
  • 376
  • 5
  • 22