Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Tree: 1b774f293f
Fetching contributors…

Cannot retrieve contributors at this time

executable file 51 lines (39 sloc) 1.614 kB

CWAC Task: A Bit More Background Task Goodness

THIS PROJECT IS DISCONTINUED — USE AT YOUR OWN RISK

The CWAC Task module presently offers AsyncTaskEx class, which is Android's AsyncTask with a larger thread pool and support for an unbounded work queue for backlogged tasks. On the one hand, this is risky, in terms of bogging down your device. On the other hand, this means you can use AsyncTaskEx for situations where the exact number of background jobs is unknowable and likely more than 10.

You use it just like AsyncTask, assuming you:

  1. Put the JAR file (run ant jar to build one) in your project (e.g., drop it in libs/ for Ant to pick it up)
  2. Reference com.commonsware.cwac.task.AsyncTaskEx instead of android.os.AsyncTask.

Version

This is version 0.3 of this module, meaning it hasn't failed me yet, but it hasn't been severly tested, either.

Demo

In the com.commonsware.cwac.task.demo package you will find a sample activity that demonstrates the use of AsyncTaskEx.

Note that when you build the JAR via ant jar, the sample activity is not included, nor any resources -- only the compiled classes for the actual library are put into the JAR.

License

The code in this project is licensed under the Apache Software License 2.0, per the terms of the included LICENSE file.

Questions

THIS PROJECT IS UNSUPPORTED

Who Made This?

CommonsWare

Jump to Line
Something went wrong with that request. Please try again.