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

Drag and Drop with cwac-touchlist

I have two questions. 1. How to make app remember new order in ListView what I made with drag and drop. Like now I can reorder items but every time I open app, I have to reorder items again. 2. My app should open different webpage from each item.…
Eljas
  • 1,187
  • 4
  • 17
  • 37
0
votes
1 answer

How to start service with wakelock from doWakefulWork?

im using WakefulIntentService and i want to lunch service from doWakefulWork with wake lock, how to do that ? (my service run for 10 second and then calls stopSelf).
Jimmy
  • 10,427
  • 18
  • 67
  • 122
0
votes
1 answer

error with cwac-endless, when extending EndlessAdapter

i added the jar file in build path, but whenever i'm extending EndlessAdapter i got an error saying "The type com.commonsware.cwac.adapter.AdapterWrapper cannot be resolved. It is indirectly referenced from required .class files"
Joe
  • 774
  • 6
  • 23
0
votes
2 answers

How do I edit Endless adapter in a way that the loading stops if there is no data to load?

The endless adapter that I've used in my code, doesn't stop expecting data even if I am out of it. Thus the throbbing symbol, which is the loading symbol here, keeps on circling expecting some data. How do I stop it? How do I make the endless…
Hick
  • 35,524
  • 46
  • 151
  • 243
0
votes
1 answer

If and when to close the database when using commonsware loaderex SQLiteCursorLoader?

Do I need to be concerned about making sure the database is closed when a FragmentActivity that uses a LoaderEx SQLiteCursorLoader is paused or destroyed? Thanks much
Julian A.
  • 10,928
  • 16
  • 67
  • 107
0
votes
2 answers

Error while using the EndlessAdapter in Android

While using EndlessAdapter, I came across this error: Cannot instantiate the type EndlessAdapter at this following statement: EndlessAdapter adapter = new EndlessAdapter(this); I've defined an adapter class in EndlessAdapter.java and have imported…
Hick
  • 35,524
  • 46
  • 151
  • 243
0
votes
2 answers

Commonsware Drag Drop shrinks row height permanently

I did get the drag and drop working and the TouchListView class works great. However in my case I have rows of various height due to my adapter which contains an EditText that can have multiple lines. Therefore after I drop, all my rows convert to…
Mike6679
  • 5,547
  • 19
  • 63
  • 108
0
votes
1 answer

How to use commonsware with regular activity

I have an already established activity that must extend another activity so I'd much rather use commonsware drag and drop TouchListView class with my existing activity rather than extend ListActivity. However, I can't find an example of how to do…
Mike6679
  • 5,547
  • 19
  • 63
  • 108
0
votes
1 answer

Problems building cwac-touchlist android project

I am trying to build the cwac-touchlist project following the steps in the README from https://github.com/commonsguy/cwac-touchlist. The first step is to build the toplevel project with ant parcel, but the parcel target does not exist in the…
karcsi
  • 1,373
  • 1
  • 8
  • 5
0
votes
1 answer

Drag n' trop with Commonsware TouchListView

I use a Commonsware touchListView to list the content the of the device sdcard, some list item represent a file of a folder. I would add the option of taking an item "file" and drag item in "folder". It is possible? Like an interface that provide…
Maxime
  • 357
  • 2
  • 10
  • 23
0
votes
1 answer

MergeAdapter - removing a child adapter + unregisterDataSetObserver()?

I'd like to remove an adapter from a MergeAdapter, as per this question: Remove view from MergeAdapter Do we need to clean up the observer registered with the child adapter in addAdapter()? For example: public void addAdapter(ListAdapter adapter) { …
user291701
  • 38,411
  • 72
  • 187
  • 285
0
votes
1 answer

calling IntentService.startService() very often

I would like to ask if there is something like intent overflow when WakefulIntentService.sendWakefulWork() or in general IntentService.startService() is called very often not waiting for previous jobs to be finished. I am thinking of a situation…
bart
  • 2,378
  • 2
  • 19
  • 21
0
votes
1 answer

Create a TouchList programmatically

I'm trying to use the TouchListView made available here: https://github.com/commonsguy/cwac-touchlist. It's an Android library to create reorderable lists. I can run the demo fine, but I can't find a way to create a TouchList in Java, ie without…
MasterScrat
  • 7,090
  • 14
  • 48
  • 80
0
votes
1 answer

Animation in ListView (Commonsware touchListView)

I try to show an animation (a windmills) inside each view of the ListView adapter, I can see the first image of the animation but the "animation" won't start. Inside the adapter when I build the row, I start the animation like that: …
Maxime
  • 3,167
  • 7
  • 26
  • 33
0
votes
1 answer

Make Commonsware TouchListView functional in a TabGroup activity

when I run my project with the Commonsware TouchListView inside a TabGroupActivity, I can see the ListView but when I try to Drag an item the app crashes. I have this in the log : 10-21 11:21:50.433: ERROR/AndroidRuntime(23139): FATAL EXCEPTION:…
Maxime
  • 3,167
  • 7
  • 26
  • 33