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

Implementing a WakefulIntentService in a multiple activity aplication

I have a application which needs to poll data at frequent intervals. I had an App Service logic with TimerTask implementation but then I moved to WakefulIntentService by @Commonsware. Now my problem is that I have multiple activity screens that…
Anand Sainath
  • 1,807
  • 3
  • 22
  • 48
0
votes
1 answer

Android CWAC-Adapter : why registerDataSetObserver in Constructor?

As the title says, I am having difficulty in understanding the use of registerDataSetObserver in the Constructor of cwac-adapter /** * Constructor wrapping a supplied ListAdapter */ public AdapterWrapper(ListAdapter wrapped) { super(); …
500865
  • 6,920
  • 7
  • 44
  • 87
0
votes
1 answer

WakefulIntentService NEW CRASH reports as my users are migrated to ICS?

My users are slowly being migrated to ICS (Android 4.0 and above) and since then I can see new crash reports appearing ... it looks like its my implementation of WakefulIntentService that triggers the following error: java.lang.NullPointerException…
Hubert
  • 16,012
  • 18
  • 45
  • 51
0
votes
1 answer

SherlockListFrgament with CommonsWare Loaderex, can't update data

public class NewFriendsListFragment extends SherlockListFragment implements LoaderManager.LoaderCallbacks { int monthchange, daychange; Dialog dialog; int pos; CheckedTextView ctv_name; private SimpleCursorAdapter…
user1245670
0
votes
2 answers

cwac. locpoll How to stop a running location update?

I modified the OMGStop() method to something more like this: public void cancelUpdates() { //TODO potential bug here if(pi == null) setPendingIntent(); mgr.cancel(pi); //Should one of these work? stopService(new…
mparkes
  • 332
  • 3
  • 12
0
votes
0 answers

Proguard issue with commonsware colormixer

I'm trying to use the ColorMixer of CommonsWare in a PreferenceActivity. This works fine when deploying to the emulator and when I export without proguard. But when I export it with proguard configured, the application crashes. I used the proguard…
Tom
  • 2,242
  • 18
  • 27
0
votes
1 answer

Having ClassCastException using endless adapter

I'm having this classcastexception I combine lazylist by Fedor and Endless by Commonware i'm having this error 08-09 18:06:26.553: E/AndroidRuntime(314): FATAL EXCEPTION: main 08-09 18:06:26.553: E/AndroidRuntime(314):…
RoRo
  • 118
  • 9
0
votes
1 answer

Using cwac-endless adapter with existing/custom AsyncTasks

I'm currently using what I assume is a common pattern in Android, of fetching data from a network using various AsyncTasks, and updating a simple ArrayAdapter on completion using an interface callback mechanism. cwac-endless is reasonably easy to…
brk3
  • 1,524
  • 2
  • 19
  • 31
0
votes
1 answer

Endless adapter, clicking on loading....row will give exception

I was just testing this, and if the user presses the temporary "loading..." row while its being shown, it will give the out of bound exception. What's the best way to deal with this? checking the id on the lists OnItemCLickListener? regards, Here's…
Maxrunner
  • 1,955
  • 4
  • 24
  • 41
0
votes
2 answers

How to use the getColor method from cwac's ColorMixer?

I am trying to implement the get color method for the cwac color mixer( https://github.com/commonsguy/cwac-colormixer), but every time this code runs I get a NullPointerException: int color = 1; public void openColor(){ ColorMixer mixer =…
jcw
  • 5,132
  • 7
  • 45
  • 54
0
votes
1 answer

what is endlessadapter in fragment on rotation best practice?

So im using the endlessadapter from commonsware on a fragment and the issue i have is that every time i rotate while the adapter is waiting to finish loading some data, the cacheInBackground method is called again. The initialization of the adapter…
Maxrunner
  • 1,955
  • 4
  • 24
  • 41
0
votes
1 answer

Endless adapter always running to download data in background

I have customized the code of EndlessAdapter in my app but one mistake done by me as this Endless Adapter always download data in the background instead it should download the same after user scroll downs the list and I unable to find the same…
Sanat Pandey
  • 4,081
  • 17
  • 75
  • 132
0
votes
1 answer

Not receiving the broadcast while running the LocationPollerDemo

I've searched through a number of the questions and answers in regards to the LocPoller from Commonsware and haven't found the answer to my problem. I have tried using the demo of the latest from github and I'm having issues. First I must admit…
rindress
  • 706
  • 1
  • 6
  • 12
0
votes
0 answers

cwac. locpoll stop updating?

locpoll to get a location in a period (25 seconds) and it seems that sometimes it stops sending location updates or the receiver stops receiving. Here is my code. Is anything wrong with it?. public class LocationReceiver extends BroadcastReceiver…
0
votes
1 answer

How to wait for onLocationChanged() in LocationListener in the same place that invoked requestLocationUpdates()?

I'm writing a GPS tracking app. I'm using CommonsWare WakefulIntentService and AlarmReceiver to schedule fixing locations from GPS. The problem is that I must use doWakefulWork() method is meant to be used with synchronous blocking processes where…
1 2 3
26
27