In my case I was getting this error :
getParameters failed (empty parameters)
when I called getParameters()
after unlocking the camera. So, please call getParameters()
before you call camera.unlock()
.
More Related Contents:
- How do I open the “front camera” on the Android platform?
- Android Camera Preview Stretched
- Get Path of image from ACTION_IMAGE_CAPTURE Intent
- How to get the Correct orientation of the image selected from the Default Image gallery
- Use camera flashlight in Android
- android java lang runtimeexception fail to connect to camera service
- Converting YUV->RGB(Image processing)->YUV during onPreviewFrame in android?
- Convert bitmap array to YUV (YCbCr NV21)
- how to run media scanner in android
- Is it possible to use front and back Camera at same time in Android [duplicate]
- Camera intent not working with Samsung Galaxy S3
- Android camera android.hardware.Camera deprecated
- Enable rear camera with HTML5
- How to capture and save an image using custom camera in Android?
- Encoding H.264 from camera with Android MediaCodec
- Stop saving photos using Android native camera
- Nexus 5x reverse landscape sensor fix in a android camera preview app
- Camera in Android, how to get best size, preview size, picture size, view size, image distorted
- Android: BroadcastReceiver intent to Detect Camera Photo Taken?
- Android camera rotate
- Extract black and white image from android camera’s NV21 format
- Check if device has a camera?
- switch back/front camera on fly
- Turn ON/OFF Camera LED/flash light in Samsung Galaxy Ace 2.2.1 & Galaxy Tab
- How to get uri of captured photo?
- Android Camera – Save image into a new folder in SD Card
- Make a SurfaceView larger than the screen (Fitting a camera preview to a SurfaceView larger than the display)
- Picture distorted with Camera and getOptimalPreviewSize
- camera app not working?
- How to launch front camera with intent?