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
4
votes
0 answers

Configuration for Offline Jenkins Android Gradle Build Server

I have been trying to maintain a build server for my team (Android development) with the following setup: Windows Server 2008 Jenkins Gradle plugin for Jenkins Due to forces out of my control, the server has to be offline. It connects to an…
4
votes
2 answers

How does gradle choose certain urls to look in for a repository? How do I point it in the right direction so that I can import this JAR?

In order to fetch the cwac-camera commonsware jar, I have this in build.grade: dependencies { compile 'com.commonsware.cwac:camera:0.6.+' } when I try and compile, it gives me this: Error:A problem occurred configuring project ':app'. > Could…
BigBoy1337
  • 4,735
  • 16
  • 70
  • 138
3
votes
1 answer

Deadlock when closing sqlite database

I'm investigating occassinal ANR in my project. It happens when there are a lot of requests to database in the background, user clicks button and database is being closed as a part of logout. I'm using saferoom and rx-java2. Here is some code from…
mol
  • 2,607
  • 4
  • 21
  • 40
3
votes
1 answer

CWAC error: Unable to get provider com.commonsware.cwac.provider.StreamProvider

I was integrating CWAC StreamProvider to my code, but after run my code, I saw Unable to get provider com.commonsware.cwac.provider.StreamProvider in logcat. I couldn't solve it from solutions on internet, because I found only a few solutions…
3
votes
1 answer

SQLCipher with Room Persistence Library exception in SQLCipherUtils.getDatabaseState

I have a Room database in my Android app, and in my AppClass, I have some logic that checks the database encryption state in order to handle some potential encryption operations that might need to be performed on the database. However, whenever I…
oaky_afterbirth
  • 125
  • 3
  • 15
3
votes
1 answer

How to share an image file to WhatsApp and Viber on Android 7.1.1?

Background Similar to issues I've recently had with sharing/opening APK files (here, here and here) , I now have an issue of sending an image file (in assets, res/raw or even from a URL) to specific apps: WhatsApp and Viber. I need to be able to…
android developer
  • 114,585
  • 152
  • 739
  • 1,270
3
votes
1 answer

Using MergeAdapter; looking for a way to determine a list item's data type in the ListActivity onListItemClicked method

I'm using the MergeAdapter to create a sectioned list where each section of the list contains a different type of underlying data. All is working pretty much as expected. However, the ListActivity's onListItemClicked method seems more complicated…
Steve Green
  • 31
  • 1
  • 2
3
votes
1 answer

WakefulBroadcastReceiver in support library vs cwac-wakeful by commonsware

I am using commonsware WakefulIntentService for doing wakeful work. Is there any advantage over using the commonsware library instead of WakefulBroadcastReceiver from support library? This is my code using the suport library import…
Darish
  • 11,032
  • 5
  • 50
  • 70
3
votes
1 answer

Detect when video file has been really written?

The cwac-camera library has event hooks that are called before a photo is saved: @Override public void saveImage(PictureTransaction xact, byte[] image) {} Have I just overlooked this or is there no sink which tells me when a video file has been…
Oliver Hausler
  • 4,900
  • 4
  • 35
  • 70
3
votes
2 answers

Preview mode must have started before you can take a picture

We are getting such stacktraces in our application using cwac-camera: java.lang.IllegalStateException: Preview mode must have started before you can take a picture at com.commonsware.cwac.camera.CameraView.takePicture(CameraView.java:329) at…
Viktar Patotski
  • 584
  • 6
  • 20
3
votes
1 answer

My bitmap gets rotated in Android after scaling it

This is my code. This question is somewhat related from this question: Trying to scale down a Bitmap in Android not working I commented out the options.inSampleSize and I still get the rotation (counter-clockwise 90 degrees seemingly). This seems…
user2676468
3
votes
1 answer

CWAC Camera - Add tap to focus possible?

I'm using the commonsware camera library. My pictures look great, but when I get close to something I want to re-focus, but I haven't been able to do that. I have followed some of the read me documentation as seen here: You can call autoFocus() on…
c_idle
  • 1,448
  • 4
  • 22
  • 40
3
votes
1 answer

CWAC Camera - Implement a custom gui

I'm using the library created by commonsware to make a simple camera application. In the read me there is a section that states this: You can subclass CameraFragment and override onCreateView(). Chain to the superclass to get the CameraFragment's…
c_idle
  • 1,448
  • 4
  • 22
  • 40
3
votes
1 answer

Merge Adapter header crash

I am having problems with the CWAC Merge Adapter: https://github.com/commonsguy/cwac-merge This works fine when i am adding views and adapters one after another but it seems that when i try to add two headers one after another it crashes. Here is…
Adrian Olar
  • 2,883
  • 4
  • 35
  • 63
3
votes
2 answers

Android service execution denied

I have a service implemented as a WakefulIntentService. It is started every time a proper intent is issued to the BroadcastReceiver responsible by starting it. The service starts in two situations: upon device boot and when a running instance of the…
Piovezan
  • 3,215
  • 1
  • 28
  • 45
1
2
3
26 27