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

Commonsware 'locpoll' library generates 'sending message to a handler on a dead thread' warnings

I'm using the very useful CWAC-LocationPoller.jar library (Hat Tip to Mark Murphy), which provides the 'com.commonsware.cwac.locpoll.LocationPoller' class. The trouble is, I keep getting this warning, seemingly every time the location polling alarm…
1
vote
1 answer

ListFragment from cursor loader fails to display anything on orientation change

I'm working on an Android application built with ActionBarSherlock and ViewPagerIndicator with a minSDK of 8 (Android 2.2) and targetSDK of 16 (Android 4.1) making use of the Android Compatibility Library. I have a messaging portion of the app where…
1
vote
1 answer

Regrading advanced service pattern (wakful service) of commonsware books

I'm using the wakeful service pattern of the commonsware books. My problem is to handle the service instance. My goal is to check every X minutes for the current location of the user (doesn't have to be very accurate), and do some logic with…
Shahar
  • 541
  • 2
  • 7
  • 22
1
vote
1 answer

Wakeful IntentService work incomplete thith Notification in sleep mode

I have set up AlarmManager for 1 minute for test mode. It sends broadcast to OnAlarmReceiver. OnAlarmReceiver start sendWakefulWork(context, TaskService); and in TaskService in doWakefulWork() method i sendOrderedBroadcast which fire…
higsBozone
  • 302
  • 3
  • 10
1
vote
1 answer

NoClassDefFound:while runnig demo of cwac-wakeful

I have issue with NoClassDefinitionfound, while running com.commonsware.cwac.wakeful.demo from https://github.com/commonsguy/cwac-wakeful, Its not getting the Launcher activity DemoActivity. Note , I have integrate library for the same from above…
Richa
  • 3,165
  • 1
  • 22
  • 26
1
vote
2 answers

Clickable ListViews with headers and MergeAdapter crash the app onListItemClick

I am having a problem within an activity that returns a ListView or a combination of several ListViews together merged with MergeAdapter from Commonsware. It is a search activity that based on the search query would return results from 1 or several…
1
vote
2 answers

How to parse data in small parts using SAX Parser?

I am making a small android application in which I am using endless list view using https://github.com/commonsguy/cwac-endless/ The data on the server end may contain thousand of entries so it will be quite large to download all the values at…
Nitin
  • 1,966
  • 4
  • 22
  • 53
1
vote
2 answers

Android adding a relative view to a merge adapter

Hi i'm trying to add a relative view to a merge adapter but it's currently scrolling separetly to the lists so does anyone know how i can add a relative layout with an image view and a text view to a merge adapter? my aim is to have it look like…
Luke Batley
  • 2,384
  • 10
  • 44
  • 76
1
vote
0 answers

TouchListView inside Dialog

This is my debut question here, but I hope start answering soon. I'm trying to use CommonsWare's TouchListView inside a dialog (a subclass of PreferenceDialog to be precise). I got the list rendering the items, but they can't be dragged. Seeing that…
Chopin
  • 1,442
  • 17
  • 24
1
vote
1 answer

Making cwac-merge adapters disabled

I found few days ago, amazing project, called https://github.com/commonsguy/cwac-merge. I want to make some adapter disabled (non clickable, like headers). On readme I can read: You can also extend MergeAdapter to override isEnabled(), so you can …
1
vote
1 answer

LocationPoller and multiple broadcast receiver

I am using cwac-Location Poller (from here) to constantly poll user location and display location based notifications. This all is working fine but now I am trying to attach another BroadcastReceiver so that if my application is in foreground,…
Waqas
  • 6,812
  • 2
  • 33
  • 50
0
votes
1 answer

WakefulIntentService Integration

I have a few questions regarding the WakefulIntentService implementation by CWAC: 1) Is it safe to use multiple WakefulIntentServices at the same time within my application? 2) Is it still ok to use my own code that handles AlarmManager? This would…
jtnire
  • 1,348
  • 5
  • 21
  • 32
0
votes
1 answer

Display Alert Dialog after WakefulIntentService completes?

I am using commansware example for wakefulIntentService. I am stuck at a point where I am not able to create alert dialog for the user after my doWakefulWork() gets the updated response from the backend? I am starting this service and closing as…
Bir
  • 113
  • 3
  • 12
0
votes
2 answers

WakefulIntentService and Toast

I guess this is a question straight to Mark, but I can't for the life of me get a Toast notification to work from inside the doWakefulWork method of WakefulIntentService. It works from the onCreate, but I need to use some data I am getting through…
electrichead
  • 1,124
  • 8
  • 20
0
votes
1 answer

TouchListView resizes view after drop (CommonsWare)

Hi all (especially CommonsWare) I am trying to use the TouchListView of CommonsWare. The movement of the list items works and looks like it should do when i open the app, but as I move the item around, the views get a different size (Think the size…
Bastaix
  • 835
  • 3
  • 12
  • 23