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
2 answers

Android - Do I need a WakeLock?

I have a BroadcastReceiver that listen for the "SMS_SENT" Intent after an SMS has been sent. As far as I know, SMSManager does provide a wakelock so that it can actually send the SMS (I don't have any proof of this, but common sense would tell me…
jtnire
  • 1,348
  • 5
  • 21
  • 32
1
vote
1 answer

ListFragment with a Loader and an EndlessCursorAdapter - Nightmare

I will start with what I am trying to accomplish. I have a ListFragment, with LoaderCallbacks associated to retrieve data from a DB. The data is downloaded using an AsyncTask, and inserted into the DB. When the user gets to the bottom of the list,…
Mimminito
  • 2,803
  • 3
  • 21
  • 27
1
vote
1 answer

Updating a MergeAdapter/SectionedAdapter

I'm trying to make a LazyList EndlessList but using a sectioned adapter...The sections will be pages of items that will be downloaded from the Internet. I've tried to implement the basic gist of it using both a MergeAdapter or the deprecated…
st0le
  • 33,375
  • 8
  • 89
  • 89
1
vote
1 answer

Save TouchListView and open it next time when app opens

I need help how do I save my ListView's order after drag and drop. My list have items (google and yahoo) and when user press them it opens www.google.com or www.yahoo.com. So right now every time I reorder my listview and close the app it forgot…
Eljas
  • 1,187
  • 4
  • 17
  • 37
1
vote
1 answer

Android EndlessAdapter set OnLongClick to items

I'm using the EndlessAdapter to load a list of users from network and now I want to set the event onLongClick on each item of the list but I can't. I have set the onClick but if I implement the onLongClick it never launches this event and is…
scuencag
  • 664
  • 4
  • 11
1
vote
1 answer

Adding Multiple Views to ViewSwiper dynamically

I am using the following code to add multiple TextViews to CommonsWare ViewSwiper but I see Overlapping TextViews: for (int i = 0; i < 10; i++){ LayoutInflater vi = (LayoutInflater)…
Ali
  • 1,648
  • 2
  • 26
  • 48
1
vote
1 answer

Problems with TouchListView and Drag and Drop (commonsware)

CommonsWare, I got some problems with your Touchlist. Starting the Demo in a sperate project isnt any problem. But when i try to import the files in my exsisting project, in the xml file where i declare your TouchListView it says this: error: No…
sMau
  • 149
  • 2
  • 10
1
vote
1 answer

Modifying TouchList View to drag from List onto Another view (An Image view)

I am trying to modify the TouchListView component to allow me to drag an item from a list view over another view, to create a drag and drop selection system. The user will drag a list item and release it to indicate the selection. So far I have…
Plastic Sturgeon
  • 12,527
  • 4
  • 33
  • 47
1
vote
2 answers

Trying to duplicate code in Demo for CWAC Touchlist and getting errors for Android

I have been developing for over 10 years in languages other than Java. I am new to the Android world, but I'm trying to dive right in. I am trying to make a draggable list and I found the wonderful repos…
Chris
  • 493
  • 3
  • 11
1
vote
1 answer

Android Drag and Drop ListView problems

I am a android beginner. I am doing a android project which has a function to reorder something in a list. I found a open source at https://github.com/commonsguy/cwac-touchlist#readme and the module name is CWAC: TouchListView But during my…
Rebecca
  • 85
  • 1
  • 8
1
vote
0 answers

CWAC-Saferoom nearly doubled DB performance

I was doing a performance test for CWAC-Saferoom, to see how bad it would affect performance in accessing the database. I created two applications, all their code is identical, except for this: private val dbName = "Encrypted_Database" …
1
vote
1 answer

Exception while computing database live data - crash during migration

I'm using cwac-saferoom version 1.0.4 And some of the devices are getting this issue right after updating the app to a new version. Fatal Exception: java.lang.RuntimeException: Exception while computing database live data. at…
MaTriXy
  • 1,659
  • 1
  • 20
  • 27
1
vote
0 answers

Can't establish SSLSession with self signed cert on Nougat only

Attempting to establish an SSLSession using a self-signed certificate and the new-ish Network Security Configuration method as well as cwac-netsecurity library for backward compatibility works on all other versions of android (that I have tried)…
sumaca9
  • 11
  • 1
1
vote
0 answers

how do I set up SafeRoom.0.0.4 in my project correctly

I'm trying to set up Safe-room lib in my project but I got a mysterious error. For this example, I'm using todo-mvp by Google, so they're using Dagger2 and RxJava. in TodoDatabase.class I have the bunch of code: fun getInstance(context: Context):…
Douglas Mesquita
  • 860
  • 1
  • 13
  • 30
1
vote
1 answer

App crash after adding another item - cwac-pager

I'm having trouble with adding another page to the cwac-pager's ArrayPagerAdapter (v4). I had to use that library because I wasn't able to add a new tab dynamically using the system PagerAdapter. MainActivity.java: public class MainActivity extends…