Questions tagged [android-image-capture]

58 questions
0
votes
1 answer

ImageCapture cameraX orientation detect when is locked

I want to capture an Image and a Video using the CameraX library. By following the documentation i have no problem implementing the preview and the capture use cases. The code i use is the following. private fun startCamera() { …
james04
  • 1,580
  • 2
  • 20
  • 46
0
votes
0 answers

Activity Result APIs (TakePicture() camera): Failure delivering result ResultInfo (App Crash)

I have been struggling with the issue of having my activity being destroyed sometimes while taking a picture with the camera app., resulting in the below error and an app crash. java.lang.RuntimeException: Failure delivering result…
0
votes
0 answers

Android Landscape mode bug after Image capture

I found that on some devices the app gets bugged after taking a photo in landscape mode. My App is designed to be only in the vertical (portrait) mode, this is stated both in the manifest and in the activity definition. When I call…
0
votes
0 answers

Android Image capture using URI and upload to MySQL database via PHP

I have made an android app to capture image from the default camera, and then compress it using bitmap.compress() and then upload it to my MySQL database using PHP. Now the issue is, using Bitmap I get very low quality image. I found a solution that…
0
votes
0 answers

Android App crash due to Image capture only in specific devices(One plus 6T)

I am building an Android app that includes collecting customer data in different categories ,in different screeens(Activities). The data entered by the user(all input fields) are stored in Global variables(which are static). In the last screen or…
0
votes
1 answer

How to get ISO and Exposure time of captured photo with Android CameraX?

I use Android CameraX in my application for taking photos. When I capture a photo, I can either use the ImageCapture.OnImageCapturedCallback or the ImageCapture.OnImageSavedCallback according to the documentation. My problem is, that none of them…
gabhor
  • 669
  • 9
  • 23
0
votes
0 answers

How to save on Camera Photo on Custom Location?

I am currently using the following code here: val cameraRequestCode = 1 val cameraPermissionCode = 1 var imageUri : Uri? = null @RequiresApi(api = Build.VERSION_CODES.M) override fun onActivityResult( requestCode: Int, resultCode: Int, …
0
votes
0 answers

ImageFile Found Null in One Plus Device While Capture Image From Camera

I'm trying to get an Image from the Camera and external storage. Then Send it to crop then save the image on the server. Other devices like Note 7 Pro and Samsung -G920F works fine with this code But Trouble found in OnePlus A600. Please Help me to…
0
votes
1 answer

File.createTempFile() adding random strings to file name

I am facing an issue which I do not understand. I am taking a picture then creating a PNG image file as per code that follows but somewhere down the line a random string is being added to the filename which causes me all sorts of issues. For example…
Fabrizio Mazzoni
  • 1,831
  • 2
  • 24
  • 46
0
votes
1 answer

Camera2 api clicks multiple images on single click

I am using camera2 api to capture images in my android application. When i am clicking on button to capture image it clicks multiple images on just one click. This issue happens only on few devices. Any suggestion to stop clicking multiple images on…
0
votes
1 answer

Glide couldn't load image that is capturing from camera in some android devices

In my android application , i am capturing image from camera and load it with glide. In some devices it is working properly but some devices like LG Q6 , MI note 4 it doesn't load properly. Please check my code and give some solutions. In Kotlin…
0
votes
1 answer

WebRTC picture capturing doesn't work on smartphones

I'm trying to get an image capture from the front or back camera of my smartphone using the WebRTC. I used one of WebRTC samples for that. This code works perfectly in browsers on the computer, but on the smartphone with different operating systems…
deralbert
  • 856
  • 2
  • 15
  • 33
0
votes
0 answers

capture image from camera is not working only in android marshmallow otherwise its working fine in all latest or older versions

I am trying to capture image from camera .i have a code which is working fine all the devices except android marshmallow device. which returns the results to gallery recent folder. I have checked everything many times. I don't know how this is…
0
votes
2 answers

Intent object on onActivityreslut goes null on Image capture android

I am trying to set a image as profile picture on image view after capture using camera. image capturing is working fine and image is stored in device memory. But on onActivityResult code intent object goes null. Here is the code for call camera…
0
votes
4 answers

Android: "Permission Error" on Capture using Camera

In Android the Camera action show a error: java.lang.SecurityException: Permission Denial: starting Intent { act=android.media.action.IMAGE_CAPTURE cmp=android/com.android.internal.app.ResolverActivity } from ProcessRecord{beb99ec…