Questions tagged [cwac-camera]

cwac-camera is a discontinued and deprecated library to take pictures with Android’s Camera API.

As of December 2014, cwac-camera (by user commonsware) is discontinued and deprecated.

Taking pictures or videos using a third-party app is fairly straightforward, using ACTION_IMAGE_CAPTURE or ACTION_VIDEO_CAPTURE. However, you as the developer have little control over what happens with the image or video, other than indicating where the result gets stored. Plus, different camera apps have slightly different behavior, meaning that you are prone to getting inconsistent results.

https://github.com/commonsguy/cwac-camera

41 questions
0
votes
1 answer

Best way to check if Camera exists on Android device?

There is the cwac-camera library, there is also the android.hardware.camera that was deprecated in Lollipop. Now there is android.hardware.camera2. With andorid.hardware.camera, the solution was as simple as checking if Camera.getNumOfCameras() <=…
David
  • 7,028
  • 10
  • 48
  • 95
0
votes
1 answer

How to set the resolution of the CWAC camera before taking the picture?

How can I change the resolution of the CWAC camera before taking the picture, I am using the CWAC camera demo. I allready got the supported sizes.
Dov
  • 21
  • 3
0
votes
0 answers

cwac-camera "... supported only in landscape" exception

I'm trying to record video using the cwac-camera android library. I know that the library only supports recording in landscape, but I can't seem to get it to stop throwing the UnsupportedOperationException: Video recording supported only in…
Max
  • 1
  • 1
0
votes
1 answer

cwac-camera crash on zoom to

I'm using the CameraDemo app included with cwac-camera. I'm trying to make the zoom bar change from the main activity using a method updateZoom() but I'm getting a nullpointerexception sometimes from the zoomTo return. Most of the time the zoom will…
James
  • 60
  • 5
0
votes
0 answers

Finishing Activity after recording video (using CWAC-Camera library)

I am working on an application that automatically invokes an activity to take a video every few seconds. The activity is started from a service as follows. Intent intent1 = new…
0
votes
1 answer

How to increase camara view clearity in CWAC Camera Library?

When i am capture image from my mobile native app, image size is 2MB, but when capture by, CWAC Camera Library demo, it resolution is very low size is 400kb, Why this happen ? Please suggiest me proper solution
Amit Prajapati
  • 13,525
  • 8
  • 62
  • 84
0
votes
1 answer

Attach a different camera to host while it is running

In cwac-camera, I can override useFrontFacingCamera() to get either of the cameras on my device. @Override public boolean useFrontFacingCamera() { } This is working fine, as long as I configure it before the host is built. But once the host is…
Oliver Hausler
  • 4,900
  • 4
  • 35
  • 70
0
votes
0 answers

Android Camera Capture Live Preview (cwac)

I'm using the cwac camera android library in my app. I'm using single shot mode, so when I call 'takePicture' the preview freezes as it should. However when the fragment is paused (I've extended cameraFragment), and resumed, the preview is…
0
votes
0 answers

CWAC Camera auto focus indicator

I am building a custom camera using cwac-camera library, I have added autofocus while tapping on the screen and I was wondering whether there is a way to show auto-focus rectangular indicator just like in ther apps on the area touched?... thanks
AsterCoder
  • 11
  • 4
0
votes
1 answer

Android cwac-camera to take multiple photos?

The title may be unclear, but I'm using this awesome library by CommonsWare(nice meeting you at DroidCon btw) to deal with the notorious issues with Android's fragmented camera api. I want to take 5 photos, or frames..but not simultaneously. Each…
Jade Byfield
  • 4,668
  • 5
  • 30
  • 41
0
votes
1 answer

CWAC Camera - What's the best way to customize the ImageCleanupTask?

I'm using the cwac-camera library to take photos with a custom in-app camera. I'm overriding adjustPreviewParameters in SimpleCameraHost and am setting the JPEG quality. @Override public Parameters adjustPreviewParameters(Parameters parameters) { …
Dan J
  • 25,433
  • 17
  • 100
  • 173
1 2
3