Back to project page verfluchter-android.
The source code is released under:
--2010-08-23 23:59:46-- http://www.gnu.org/licenses/gpl-3.0.txt Translacja www.gnu.org... 199.232.41.10 ???czenie si? z www.gnu.org|199.232.41.10|:80... po??czono. ??danie HTTP wys?ano, oczeki...
If you think the Android project verfluchter-android listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.
package pl.xsolve.verfluchter.tasks.general; /* w w w.j ava2 s.c om*/ import android.os.AsyncTask; import pl.xsolve.verfluchter.rest.RestResponse; public class SampleAsyncTask extends AsyncTask<Void, Integer, RestResponse>{ // params, progress, result @Override protected void onPreExecute() { //in UI thread super.onPreExecute(); } @Override protected RestResponse doInBackground(Void... voids) { //NOT in UI thread for (int i = 0; i<100; i++){ publishProgress(i); } return null; } @Override protected void onProgressUpdate(Integer... values) { //in UI thread System.out.println("progress = " + values[0]); super.onProgressUpdate(values); } @Override // result protected void onPostExecute(RestResponse restResponse) { //in UI thread super.onPostExecute(restResponse); } @Override protected void onCancelled() { //in UI thread super.onCancelled(); } }