The site http://android-developers.blogspot.com/2009/05/painless-threading.html by Romain Guy suggests taking a look at the Shelves application accessible via subversion to learn about AsyncTask. However when I do a
$ svn checkout http://shelves.googlecode.com/svn/trunk/ shelves-read-only there are a lot of classes named *Task which look similar to AsyncTask but which do not derive from it, for example: * <p>Here is an example of subclassing:</p> * <pre> * private class DownloadFilesTask extends UserTask<URL, Integer, Long> { * public File doInBackground(URL... urls) { * int count = urls.length; * long totalSize = 0; * for (int i = 0; i < count; i++) { * totalSize += Downloader.downloadFile(urls[i]); * publishProgress((int) ((i / (float) count) * 100)); * } * } * * public void onProgressUpdate(Integer... progress) { * setProgressPercent(progress[0]); * } * * public void onPostExecute(Long result) { * showDialog("Downloaded " + result + " bytes"); * } * } * </pre> Here I see the familar names doInBackground() and onProgress(Update() nad onPostExecute(). What's the relationship between this code and the official AsyncTask code from google if any? Thanks, John Goche -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en

