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

Preview size wtith CWAC-Camera

I've been fighting for a while with https://github.com/commonsguy/cwac-camera Managed to create my custom CameraFragment and a custom custom CameraHost. I've overrode getPictureSize and getPreviewSize. With those two methods I'm able to find out…
Reinherd
  • 5,476
  • 7
  • 51
  • 88
2
votes
2 answers

CWAC-Camera getVideoFilename is returning invalid file name

I am using the 0.4.2 version of the jar in my project to record video an upload it. The file name returned from SimpleCameraHost.getVideoFileName() is wrong on my Nexus 4. It looks like the file name is time stamped and I have a file…
Jeff
  • 2,198
  • 3
  • 21
  • 38
2
votes
1 answer

CWAC Camera - Overriding saveImage()

I'm trying to use my own custom implementation of CWAC Camera. I am trying to override the saveImage function on my own extension of the SimpleCameraHost. This is my code: You are welcome to override saveImage(byte[]) and do something else with…
user2676468
2
votes
1 answer

What does it mean to "chain to a superclass"?

I am using CommonsWare's Android CWAC-Camera Library and trying to use my own UI for the camera fragment. Please forgive me if this is a dumb question. I am following the README file specifically this part: "You can subclass CameraFragment and…
IZI_Shadow_IZI
  • 1,921
  • 4
  • 30
  • 59
2
votes
2 answers

A reversed endless listview

I am trying to do a endless listview with the Commonsware Endless Adapter (https://github.com/commonsguy/cwac-endless), which works fine by default. What I am trying to do is a basic chat application. New items should appear at the end and the chat…
Patrick
  • 4,720
  • 4
  • 41
  • 71
2
votes
1 answer

Include cwac-loaderex library in Android Eclipse project

I'm trying to use the cwac-loaderex library in my Android application. I cloned the repository and have imported the included project into my Eclipse project. At this point I don't have any compilation errors in Eclipse, but when I try to run the…
Eugene S
  • 3,092
  • 18
  • 34
2
votes
1 answer

Can cwac-locpoll use multiple location providers?

What location providers does the Android library cwac-locpoll use to find location? Is it restricted to GPS, or can it use other sources as well?
Ray
  • 468
  • 4
  • 17
2
votes
1 answer

Accessing a Loader created in one fragment from another fragment

I have an app with a fairly standard fragment layout. An expandable listview fragment on the left and a panel on the right that is used for different things depending on what the user chooses to do with the list on the left (displaying data, adding…
2
votes
1 answer

java.lang.IllegalStateException in CommonsGuy EndlessAdapter

I was integrating commonsguy / cwac-endless EndlessAdapter in one of my application and it worked really great! Thanks to Sir CommonsWare :) But I am getting java.lang.IllegalStateException: The content of the adapter has changed but ListView did…
Vishal Vyas
  • 2,571
  • 1
  • 22
  • 39
2
votes
0 answers

How to add Pull To Refreash feature to the view with Merge Adapter?

I'm trying to add Pull To Refresh feature to the Activity which already is using Merge Adapter made by Mark Myrphy aka @commonsware. Here is our code: //get container PTR listview PullToRefreshListView…
Patrick
  • 472
  • 3
  • 16
2
votes
1 answer

CWAC android endless list adapter for very big list

I was wondering how to handle very large lists using CWAC's endless adapter. My main concern is about memory management. If I cache thousand's of items I will end up with an out of memory exception. So how do I handle that cache ? Can I clear…
azpublic
  • 1,404
  • 4
  • 20
  • 42
2
votes
1 answer

WakeLock under-locked exception using cwac-locpoll

I'm using cwac-locpoll and it's been doing a great job. However, some of my users are getting the following problem java.lang.RuntimeException: WakeLock under-locked com.commonsware.cwac.locpoll.LocationPoller at…
gdecaso
  • 693
  • 6
  • 11
2
votes
1 answer

AlarmManager does not wake tablet device from sleep

I cannot get some Android devices to wake up using the AlarmManager. Following the advice in other StackOverflow posts, I am testing CommonsWares cwac-wakeful demo unmodified, compiled in Eclipse, and sent directly to my tablet devices. When the…
Rupert Rawnsley
  • 2,622
  • 1
  • 29
  • 40
1
vote
1 answer

My included layout doesn't fill the whole space when I set the visibility with View.GONE

I don't know if it's the right way to do this but I hope you'll be able to help me. I'm using a ListActivity to display content from RSS feed. While the content is loading I want to display a pending view. I'm using the EndlessAdapter from that…
Fr4nz
  • 1,616
  • 6
  • 24
  • 33
1
vote
1 answer

commonsware locationpoller

i try to use the locationpoller of commonsware edited by alexbirkett but sometimes the broadcast goes in timeout and kill the app here my logcat WindowManager( 299): rotationForOrientationLw(orient=4, last=0); user=0 displayEnabled=true…