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
1
vote
2 answers

how do i set my capture image to image view

how do i set margin in between image view? in my code i create many imageview by using for loop but no space in between two image view how do i set margin in between teo image view?? how to i add space in between two imageview programically??? …
hayya anam
  • 87
  • 2
  • 7
1
vote
3 answers

Android: Enable/Disable Camera programmatically

I want to enable/disable camera programmatically in my application.
1
vote
1 answer

SurfaceView goes black when comes to foreground, for Camera App

I am using Camera feature in my app. Everything works fine but when the device gets locked/sleep, upon returning to the app the camera portion(SurfaceView) is just black. Below is my code. Can someone please identify the problem? public class…
Khawar
  • 5,197
  • 4
  • 28
  • 52
0
votes
1 answer

Save video to 3GP format

I need to capture the video and video save to the sd card using hardware.camera class. I created sample application with Camera.callback. It work fine. But saved video not working. I saved the file in 3gp format. Each byte array added to a single…
0
votes
0 answers

android capture image from camera and display in another activity

I want to capture image on button click and display the same image in another activity. The below code is capturing image but displaying in the same activity. How can I take image to next activity? What changes to be added? public class MainActivity…
0
votes
1 answer

How to get a name of captured image in Android

after capture the image in android how to get a name that save in SD card to programme? or how to set a name for capturing image to save in SD card. such as using incremental number. pls give me some sample code
Miuranga
  • 2,463
  • 10
  • 51
  • 81
0
votes
1 answer

how can i link my application in default camera options

i want to save pictures directly to my application after taking from default camera in android .how can i make a link to my application so that after taking the picture it should ask me to save in my application or not. please help me How can i do…
kishore
  • 49
  • 1
  • 9
0
votes
1 answer

How can i set rotation of camera capture request?

I'm using ndk to create application that captures through camera and displays the images. I succeed to capture and display images but the rotation of images is not normal. So, i tried to change the rotation of images by using…
BHYoo
  • 11
  • 3
0
votes
2 answers

Do all Android phones with a built-in camera use a folder called "DCIM" to store captured images?

I am developing an app which uses the phone's default camera application to capture an image and then allow the user to perform some basic editing. I use the following snippet... Intentintent = new…
0
votes
3 answers

How to autmatically capture and save image without press capture button in Android?

I am using Android 5.0 to implement an application which allows to automatically capture and save an image into my phone. Currently, I am using bellow code but it requires press the capture button in Capture UI of my phone. Is it possible to capture…
Jame
  • 3,746
  • 6
  • 52
  • 101
0
votes
1 answer

How to address MediaProjectionManager.createscreencaptureintent() leading to "Unfortunately, System UI has stopped"

First, I believe this is the same issue as described by this SO post. I want to provide more details and be as specific as possible in the hope that some guru will come up with an elegant solution. This happens with Android 5.1 The following…
Hong
  • 17,643
  • 21
  • 81
  • 142
0
votes
1 answer

How to save taken image only into a folder, not DCIM folder

I have a problem with the following script. It is saving the image in the folder i want it to but it is also saving it to DCIM folder, thing that i don't want. So what do i have to change to save it only into my folder? ** save photo ** private…
0
votes
1 answer

How can I capture image and after crop the captured image and replace it with crop image?

It seems dublicate but it is not please look my question. I ve searched many times on google and stackoverflow. I found many examples but none of it does not solve my issue. What I need is : I want to capture image and save it (I give the path)…
CompEng
  • 7,161
  • 16
  • 68
  • 122
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

capture photo using front camera

I am following this link http://www.vogella.com/articles/AndroidCamera/article.html#tutorial_cameraapi only I changed cameraId = findFrontFacingCamera(); line to cameraId = findBackFacingCamera(); and write the method like this: private int…
A J
  • 4,542
  • 5
  • 50
  • 80