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
0
votes
1 answer

"you do not have a secure keyguard!" when starting saferoom demo on moto g6 emulator API 28

attempting to run the saferoom demo running against an emulator defined as Pie (API 28). using android studio 3.4 on a Lenovo Windows 10 Professional system. sdk for API 28 is being used. At open the app shows the message "You do not have a secure…
JWDurbin
  • 11
  • 4
0
votes
1 answer

Android room encrpytion

How do we achieve encryption using the Android Room library. I found this library: https://github.com/commonsguy/cwac-saferoom However, I can't find a complete example as to how to implement Room with CWAC-Saferoom for encryption purposes. Also…
user2511882
  • 9,022
  • 10
  • 51
  • 59
0
votes
1 answer

SQLCipher and CWAC-SafeRoom doubling the size of my APK

The size of these libraries really increase the APK size. It’s almost 50% my App size, taking it to 16.3 MBs and when I analyze the APK, sqlcipher-lib alone is 48.9% of my apk size i.e 7.3MBs!!! Is there any workaround? Edit: Since this is a DB…
Geek Guy
  • 710
  • 1
  • 8
  • 28
0
votes
1 answer

CWAC Stream¨Provider: Bad file after sharing - too large and unavailable

I am sharing mp3 file to another application by CWAC-Provider https://github.com/commonsguy/cwac-provider This file is sharing on longClick. After longclick I get filepath from array and call method to create Intent for sharing. In this Intent I…
0
votes
1 answer

How to set up CWAC-Provider to be accessible from another app?

I'm relatively new to ContentProviders in Android and I liked the idea of sharing asset files between apps. Let's say I have 2 apps: AppA has all the nice images I want to access from AppB. AppA has StreamProvider set like this:
0
votes
0 answers

Camera2 Zoom listener

I'm making use of the cwac-cam2 library owned by CommonsWare. I've been struggling trying to modify some of its code in Camera2 engine to listen for zoom changes. In the deprecated Camera API, There's a Camera.OnZoomChangeListener, so we can check…
idish
  • 3,190
  • 12
  • 53
  • 85
0
votes
1 answer

Can't recored a video using com.commonsware.cwac:cam2

I'm using Android Studio and run AVD emulator (Nexus 5X API 25, Android 7.1.1 with Google APIs). The project is a demo one, from https://github.com/commonsguy/cw-omnibus/releases/download/v7.0/RuntimePermTutorial.zip When I press Record Video button…
Bord81
  • 525
  • 2
  • 8
  • 23
0
votes
1 answer

Delayed (timed) unregister sensor listener inside IntentService (WakefulIntentService)

I've implemented an IntentService which, using SensorManager, reads data from a heart rate sensor. It gets periodically called using AlarmManager and a WakefulBroadcastReceiver and then, upon onSensorChanged, it updates Google Fit data by using…
0
votes
0 answers

CameraController and its super classes have no public methods with the @Subscribe annotation

I'm trying to implement the CWAC2 camera activity in my application to replace the standard camera, but I'm running into the following issue when calling the camera using the following code: Intent i = new…
b0b
  • 33
  • 2
  • 8
0
votes
1 answer

Send image in response to android.intent.action.GET_CONTENT

I am willing to create an app that sends pictures in reply to the android.intent.action.GET_CONTENT intent. My use case is the Messenger app from the play store, the most common SMS/MMS app, I guess. I tried to send the picture, but it didn't work…
Benoit Duffez
  • 11,839
  • 12
  • 77
  • 125
0
votes
0 answers

Unordered list spacing issue with commonsguy / cwac-richedit Library

I am using commonsguy / cwac-richedit Library for Rich Text Editing , i am parsing an html file using the below code. Library provides the bullet and i customize that to give space between bullet and text,But i am unable to provide the space before…
anddevmanu
  • 1,459
  • 14
  • 19
0
votes
1 answer

CWAC2 capture only image visible in Preview

So, I've downloaded CWAC2 library and hacked it a bit so i can display a custom layout around the Preview of the camera. The thing is that when I have the CameraFragment in preview mode inside a FrameLayout in my Activity (left side), i see one…
AndreiBogdan
  • 10,858
  • 13
  • 58
  • 106
0
votes
2 answers

Unstable Camera behaviour on Android

I'm writing the camera application. I've started with using android.hardware.Camera and corresponded classes. But from time to time my application failed to connect to the camera. It depends on device model and Android version. But if application…
Ilya Tretyakov
  • 6,848
  • 3
  • 28
  • 45
0
votes
1 answer

Is it possible to kick off recording directly using cwac-cam2?

I would like to use cwac-cam2 to record video on a headless device. I was wondering if I could use this component to kick off video recording without a user interacting with the record button in the activity class? Basically, using the library…
RobGries
  • 49
  • 1
  • 9
0
votes
1 answer

CastClassException ( boolean to ZoomStyle )

I had a CastClassException when trying to launch a VideoRecorderActivity. Here is how I'm doing so : mTempVideoFile = new File(getContext().getFilesDir(), DateTime.now().getMillis()+"videoAndroid.mp4"); Intent takeVideoIntent=new…
Renaud Favier
  • 1,645
  • 1
  • 17
  • 33