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

Making the WakefulIntentService wait for location callback to be called

I am trying to build an app that has a service that sends the current location to a server every X minutes. Looking at other posts in SO, found that the method outlined in commons-ware https://github.com/commonsguy/cwac-wakeful would work best. The…
Harkish
  • 2,262
  • 3
  • 22
  • 31
3
votes
1 answer

Getting exceptions in dialog box having endless adapter implementation for its listview

This is my Demo Adapter. public class DemoAdapter extends EndlessAdapter { private RotateAnimation rotate = null; private View pendingView = null; private ArrayList next; private static ArrayList list; private…
Chetna
  • 864
  • 8
  • 26
3
votes
1 answer

Android: How to know if Commonsware's WakefulIntentService is running or not?

I've got a simple question: I'm using commonsware's wakefulintentservice in my application and I got it working, but how do I know if the WakefulIntentService is still running or not? Can I for example put a onDestroy in the WakefulIntentService…
Xander
  • 5,487
  • 14
  • 49
  • 77
2
votes
1 answer

ListView items sort/reorder and saving changes?

I have a ListView and I can reorder items, but every time I exit from the app and start it again the order goes back to default. I'd appreciate if someone can give me answer and maybe a little snippet of how I can do that. Example: I have two items…
Eljas
  • 1,187
  • 4
  • 17
  • 37
2
votes
1 answer

Having problems with the MergeAdapter

When using Mark Murphy's MergeAdapter everything compiles fine, but when the ListView binding occurs I get a crash with the following error when calling the addAdapter() method: java.lang.NoClassDefFoundError:…
chris
  • 4,332
  • 5
  • 41
  • 61
2
votes
1 answer

ArrayAdapter> with commonsguy EndlessAdapter class

How to use ArrayAdapter-HashMap- with EndlessAdapter class? class DemoAdapter extends EndlessAdapter { private RotateAnimation rotate=null; @SuppressWarnings("unchecked") ArrayAdapter>…
Dikobraz
  • 649
  • 2
  • 8
  • 22
2
votes
1 answer

Packaging / Mavenizing commonsware components

I am using merge list in my android project and up until now I have just been shoving the source into my src root with the rest of my code. However I'm not modifying anything so I figured it was time to include this stuff as libraries. I clone the…
danb
  • 10,239
  • 14
  • 60
  • 76
2
votes
2 answers

MergeAdapter layout issue in a fragment

I'm trying to make a layout in Android with Fragments. I started to use Commonsware's MergeAdapter but I'm having a weird bit of trouble. The layout worked fine before, but now I get this: There are a couple problems: The white strip should have…
Jess
  • 42,368
  • 6
  • 37
  • 51
2
votes
1 answer

Add footer to Android TouchListView

Hi I'm using the TouchListView control from here: https://github.com/commonsguy/cwac-touchlist and I've added some buttons to add to the list in the footer: mFooter = getLayoutInflater().inflate(R.layout.edit_homepage_footer_layout, null); …
Rupert Bates
  • 3,041
  • 27
  • 20
2
votes
0 answers

java.lang.IllegalStateException with com.commonsware.cwac.merge.MergeAdapter

Mine is a chat application and I use MergeAdapter to display 3 sections in the chat Roster listing. Section one includes the list of users that are currently in the thread. Section two lists different groups (consisting of 1+ users) that can be…
rbing
  • 133
  • 1
  • 10
2
votes
1 answer

sendWakefulWork not always called with cwac-wakeful-1.1.0

I've got a problem for a long time now and I discovered cwac-wakeful, which could solve all my problems. I thought... :'( In short, for solving the problem, I've implemented a most simple app, which schedules alarm every 60 seconds and logs…
mcourpot
  • 315
  • 1
  • 4
  • 15
2
votes
1 answer

CWAC LocationPoller shutting down after home button press

I'm running a demo example of cwac-locpoll. It is meant to log my position every minute in LocationLog.txt file. It works fine as long as app is on the screen, but if I press the home button it stops logging and when I return to application it…
2
votes
2 answers

Using AndDown library in Android

I was using the AndDown library (using the artifact from Gradle) for Markdown in Android for formatting. Yesterday, I included the latest version of play services from Google, com.google.gms:google-services:1.5.0-beta2 After including this library,…
user3747512
  • 203
  • 1
  • 6
  • 15
2
votes
1 answer

Does cwac camera capture the user's gps location?

I am creating an app that needs to be COPPA (Children's Online Privacy Protection) compliant. I am wondering if cwac camera captures gps information about the user at all. Does it do geotagging by default? If so, how can I turn it off? For your…
andyjslee
  • 589
  • 2
  • 5
  • 15
2
votes
2 answers

Callback from cwac-camera

I'm trying to implement the wonderful library cwac-camera. I can't seem to figure out how to implement a callback for a picture and how to set the path for the picture. This is my CustomCameraFragment public class CustomCameraFragment extends…
TomCB
  • 3,983
  • 9
  • 40
  • 66
1 2
3
26 27