Questions tagged [commonsware-cwac]

Questions about the CommonsWare CWAC series of Android libraries.

Mark Murphy, who helps here at Stack Overflow as CommonsWare, has published the CommonsWare Android Components (CWAC for short).

Questions tagged with should pertain to one (or more) of the CWAC libraries.

398 questions
1
vote
1 answer

Unable to view asset image file in Gallery via cwac-provider

I want to open an image present in my app's assets with any available image viewer in the device. Using cwac-provider library, I have been able to do the same for some .pps files in assets without a trouble but, the images don't quite work as…
1
vote
1 answer

How to change flash setting while camera is open in cwac-cam2?

I ma using cwac-cam2 for creating a camera app. I am not able to set flash modes while running the camera window and the flash is on always. I also don't see a button for changing flashmode. Am i doing something wrong? Here is the code: public class…
SuperHaker
  • 178
  • 1
  • 15
1
vote
2 answers

Does Android's FileProvider actually support external-files-path?

I've run into the FileUriExposedException stuff where you try to send a file:/// Uri to another app (in this case the camera), and I should be using a FileProvider instead (causes a crash on api 24 Nougat). In our app, we generate a File using…
1
vote
0 answers

Preview callback

I found it's way easier to use CWAC-CAMERA to show a preview. So I want to use CWAC-CAMERA with Zxing Core to decode QRCode. Is there a way to implement : Preview.Callback to obtain byte[] data of Preview ? So I can use Zxing core to decode. Thanks
Cheng
  • 11
  • 1
1
vote
2 answers

Trying to send a pdf using cwac provider

I can't quite get cwac to work, and looking at the demo code hasn't helped. I'm simply trying to export a pdf through a share intent. Currently the output is a "Can't attach empty file" error. But the file does exist, and I can't tell if the problem…
NappyXIII
  • 195
  • 2
  • 17
1
vote
2 answers

How to import cwac camera library

I am trying to import this project in my android studio version 2.1.2 But I am getting below error couldn't solve it . Error : Error:(12, 13) Failed to resolve: com.commonsware.cwac:camera:0.6.12 Show in FileShow in Project Structure…
user6593534
1
vote
0 answers

How to use cwac2 camera with custom layout

I'd like to use this library, as it seems to be the best one out there (i've used the first version cwac camera some time ago) but I'd like to use my own implementation of CameraActivity. Have a custom layout surrounding the preview. What I mean by…
AndreiBogdan
  • 10,858
  • 13
  • 58
  • 106
1
vote
1 answer

Getting files from subfolders in assets

I got StreamProvider working with my application allowing me send images from my stamps subfolder inside assets. I was wondering about multiple subfolders in the assets directory. I added a gifs folder from which i want to share gifs. This worked…
user3074140
  • 733
  • 3
  • 13
  • 30
1
vote
1 answer

crash on Orientation change while filming with Library CWAC CAM2

I've a crash on my nexus 5 Android 6 (hammered/hammered) using CommonsWare library cwac:cam2 when I change the orientation on the recording/photo capturing activities. The bug is systematic on my device. stacktrace : E / AndroidRuntime: FATAL…
Renaud Favier
  • 1,645
  • 1
  • 17
  • 33
1
vote
1 answer

Error trying to share image in assets with third party chat app

I am trying to get the StreamProvider to share images in my assets/stamps folder, but am doing something wrong. Sorry for asking such a trivial question. Using the demo as an example this is where I am at. manifest file
user3074140
  • 733
  • 3
  • 13
  • 30
1
vote
1 answer

Exception when sharing multiple images in messaging using StreamProvider

I use StreamProvider to serve images to other apps. Everything works fine except in one case: when I try to share multiple images to messaging app on my Samsung S6 device, Android 5.1.1, the messaging app crash with these logs: Process:…
Jérémy Reynaud
  • 3,020
  • 1
  • 24
  • 36
1
vote
1 answer

Updating row contents in RecyclerView

I'm trying to implement a choice mode for my RecyclerView. However, I'm having a problem while trying to deselect previously checked items. My approach goes like: if (selectedPosition >= 0) { RowHolder row =…
Mahmoud Abou-Eita
  • 933
  • 1
  • 8
  • 17
1
vote
1 answer

CWAC-CAM2 : CameraActivity confirmation requires and action bar

I try use cwac-cam2 library to take picture Sample code: Intent i = new CameraActivity.IntentBuilder(this) .to(new File(getFilesDir(), "picture.jpg")) .updateMediaStore() .build(); Tested…
Plugie
  • 1,289
  • 17
  • 25
1
vote
1 answer

MergeAdapter and hiding headers (views)

I have three adapters and headers before each adapter in a listView. If a particular section is empty, how can I hide that header(view)? It leaves a space where it is if I make it's layout visibility gone.
1
vote
1 answer

Camera preview rotated on some devices

I have been for a while with camera preview on some tablet devices. On most of the top-end devices works well, however on this cheap tablet the preview is completely upside down like the one on the picture: Is there a way to manually rotate the…