Questions tagged [android-capture]

The "android-capture" tag involves topics related to android capture of images or sound for display or processing. Use this tag for questions about camera2 captures, Android Q playback captures, and camerax captures. use this tag in conjunction with the "android" tag and any other appropriate tag.

Look at the pages linked below if you want to find more information about the APIs this tag concerns:

  • camera2 documentation can be found here.

  • camerax captures documentation can be found here.

  • Documentation on Android Q playback captures can be found here.

36 questions
7
votes
3 answers

How to resume android camera preview after onPictureTaken function?

I am developing an app that take pictures from camera object and save it to the sdcard. It works great except some things.(I cant config some parameters for example resolution). But when I take picture it freeze on the screen. I just want to resume…
baha
  • 99
  • 2
  • 11
6
votes
2 answers

Android - Capture photo

In my application, i have to implement native camera activity where i have to launch the camera and take photo. In detail, my application containing, One TextView (at top) to display activity name and one Button (At bottom) and in Middle Area of the…
Paresh Mayani
  • 127,700
  • 71
  • 241
  • 295
3
votes
3 answers

How to move image captured with the phone camera from one activity to an image view in another activity?

The first activity has a button which when clicked, opens the inbuilt camera. Now when the picture is taken, a new activity opens with the image captured in an imageView and a share button in the next activity. I have set up the activity to open…
2
votes
4 answers

how to save captured image with custom size in android

in my application i can open the camera and take a picture. The picture is stored in a full size of 2448x3264 pixels on the sd-card. how can i configure this in my application, to save the picture in a size of 90x90 pixels and not in 2448x3264…
2
votes
2 answers

How to Capture Image When Device is Locked

I want to capture image automatically by using either front or rear camera from an android device when screen is locked and someone try to unlock it. I checked it is possible in Android and some application is available in Market. Please help.
2
votes
4 answers

How to avoid saving picture at gallery or delete it automatically in Android?

The device is Samsung Galaxy III. I developed an APP to run the camera activity and capture an image. After analyzing the image, I print out some text information. Right now every captured image is saved at gallery. I don't need the image to be…
snowgoose
  • 165
  • 1
  • 9
2
votes
3 answers

How to get croped image captured from CAMERA

How to get the crop image which are bounded within a section which are shown in Image. I want my app to capture an image of a book page, which contain 4 image patterns at the corners. I want it to first match those pattern and then to remove all the…
1
vote
0 answers

Image Reader Works on Virtual Device, Not on Real Device

Image Reader Not Working on Real Device In Media Projection, when trying to capture the screen with the createVirtualDisplay function, ImageReader is running in Virtual Device and it always captures different images, but after capturing several…
1
vote
1 answer

Android Camera2: Update UI between image captures with captureBurst is not synchronized

I am trying to capture images with Camera2 API on Android with captureBurst() method. I start the burst capture in my button's OnClickListener: button?.setOnClickListener(View.OnClickListener { …
vp24
  • 103
  • 1
  • 10
1
vote
1 answer

How can I skip an activity created by androids CAMERA_ACTIVITY?

I'm using androids default camera capture and then a crop library to take a photo then crop it to a square to be displayed on the next layout, the picture stored on the device and a record created on a database. Intent camera_intent = new…
Jube
  • 184
  • 2
  • 15
1
vote
1 answer

Rotating a captured video

My app takes a video capture from the front camera and saves it to SD. Although the preview is just fine (after being rotated 90 degrees), the end result is tilt sideways. Is there a way to save it properly?
JustAGuy
  • 5,151
  • 11
  • 41
  • 55
1
vote
0 answers

How to limit minimum dimensions of cropper in android?

I want to restrict the user to crop the image to an image of 200 x 200 or some other value. i.e. while cropping, if the cropper has reached its minimum limit defined by me , it should stop squeezing inward. Can any one guide me how can i do…
BST Kaal
  • 2,993
  • 6
  • 34
  • 52
1
vote
0 answers

How can I get the real size of image from the cropped image?

I crop the image with 600x600 pixels but when I get it to bitmap like this if(requestCode==PIC_CROP&&resultCode == Activity.RESULT_OK) { Bundle extras = intent.getExtras(); //get the cropped bitmap Bitmap thePic =…
CompEng
  • 7,161
  • 16
  • 68
  • 122
1
vote
0 answers

android camera capture image size

i am capturing image using below code it's working fine but problem is that when capture image using default camera app it capture image 2048*1546px image and size is aprox 780 to 800kb and while capturing using below code it capture image 640*480…
PankajAndroid
  • 2,689
  • 3
  • 27
  • 41
1
vote
0 answers

"showStatusIcon on inactive InputConnection" in Android in camera application

I am using camera app to take picture and put caption on it.I am facing error like "showStatusIcon on inactive InputConnection" and also it is saying like "Skipped 440 frames! The application may be doing too much work on its main thread." I have…
1
2 3