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

How add commonsware TouchListView (tlv) library to android project in eclipse

I try to add the commonsware TouchListView library (https://github.com/commonsguy/cwac-touchlist) to my android project in eclipse but I don't know how. Somebody can help me?
Maxime
  • 3,167
  • 7
  • 26
  • 33
0
votes
1 answer

Unable to instantiate subclass of WakefulIntentService as a receiver

I'm implementing a datalogger service using WakefulIntentService and AlarmManager. I'm having trouble instantiating the receiver, however. Here's what I'm getting when I try to run the app. ERROR/AndroidRuntime(3181): java.lang.RuntimeException:…
Janne Oksanen
  • 1,524
  • 1
  • 13
  • 14
0
votes
1 answer

Can't run the touchlist project

I'd really like to implement in my app the touchlist widget, provided here: https://github.com/commonsguy/cwac-touchlist So I downloaded it and I imported the project folder in Eclipse; I tried to run as an ant build but I got this…
Dharma Dude
  • 559
  • 3
  • 5
  • 17
0
votes
1 answer

TouchListview with fixed footer

My question should be answered here: Fixed footer not displaying the bottom-most list item But it does not work for me. I want a listview with a fixed footer at the bottom. At the moment, the listview is as large as the window, which makes the…
Nino van Hooff
  • 3,677
  • 1
  • 36
  • 52
0
votes
1 answer

touchlistview custom footer prevents list size update

My problem might be related to this one: Add footer to Android TouchListView In the demo project of Commonware's touchlistview https://github.com/commonsguy/cwac-touchlist/blob/master/demo/src/com/commonsware/cwac/tlv/demo/TouchListViewDemo.java A…
Nino van Hooff
  • 3,677
  • 1
  • 36
  • 52
0
votes
1 answer

Updating the contents of a MergeAdapter

I have a pretty nifty MergeAdapter that contains a bunch of custom views and some custom ListAdapters. This MergeAdapter drives a ListActivity that displays content that get's updated every x seconds. Currently I just create a new MergeAdapter,…
NPike
  • 13,136
  • 12
  • 63
  • 80
0
votes
1 answer

How to combine an adapter and a view in MergeAdapter

I am rather new at Android and am having some issues in understanding the usage of cwac-MergeAdapter. I am trying to use MergeAdapter to populate a spinner; my instance of MergeAdapter should include a SimpleCursorAdapter, which is correctly…
Tilvia
  • 43
  • 1
  • 5
0
votes
1 answer

How to remove a view from MergeAdapter

I'm using the MergeAdapter from commonsware to put several views and one adapter into one list. By the way this is great. But I have problems to remove a particular view from the list. The MergeAdapter doesn't have a method like removeView(int…
Benjamin
  • 105
  • 1
  • 5
0
votes
1 answer

Could not resolve com.commonsware.cwac:saferoom.x:1.0.0

Could not resolve all task dependencies for configuration ':app:crewforceReleaseRuntimeClasspath'. > Could not resolve com.commonsware.cwac:saferoom.x:1.0.0. Required by: project :app > Could not resolve…
sandeep dhami
  • 188
  • 1
  • 10
0
votes
1 answer

What if doWakefulWork starts another service?

I really like the section on AlarmManager in the CWAC Advanced Android book. I am now worried about my app's work being killed because it doesn't have a wake lock. Here's what I am worried about. Is my worry rational? See code below. What if…
gregm
  • 12,019
  • 7
  • 56
  • 78
0
votes
1 answer

How to create an editable object for cwac saferoom

please am working on app that store sensitive user data on a database upon googling on how to do the answers point me to cwac saferoom since am using room for my database but the problem am facing are: Cwac saferoom required i pass in an edittable…
Eidris
  • 117
  • 2
  • 10
0
votes
0 answers

Android migration from non room version to encrypted room (with SafeRoom) is failing

I have an app with multiple migrations, one of them is from a version previous to the use of Room to a version when Room was introduced. I have found that it runs with RoomOpenHelper.onUpgrade callback, but when I use SafeHelperFactory it creates an…
0
votes
0 answers

How to use cwac-saferoom with SecretKey

Is there any way with cwac-saferoom to use SafeHelperFactory with a generated java.security.Key coming from Android KeyStore ?
DamienL
  • 577
  • 1
  • 5
  • 14
0
votes
1 answer

CWAC Saferoom and Code Shrinking, How do I shrink my code while having Saferoom?

I need help implementing android's R8 code shrinker with CWAC Saferoom. Both are implemented well and are tested in debug mode, but when I generate a release APK this stack trace appears and the app crashes: 2019-10-08 14:10:32.890 22013-22013/?…
adco4117
  • 41
  • 6
0
votes
0 answers

How do I browse an encrypted database that was created using CWAC-SafeRoom?

I'm using the Android Room API and https://github.com/commonsguy/cwac-saferoom to encrypt the relevant database. I would like to browse the encrypted DB file. I'm using DB Browser for SQLite 3.11.2 on Windows (the SQLCipher version of it) to try and…
Andrew Koster
  • 1,550
  • 1
  • 21
  • 31