Back to project page ExampleApp.
The source code is released under:
Copyright (c) 2014, Altinn All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: * Redis...
If you think the Android project ExampleApp 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 com.altinn.apps.fisher.net; /**/* w ww . j av a 2s. co m*/ * This is a subclass of AsyncTask, * Usually this class is inherited by all the tasks, which perform network operation. * * */ import org.json.JSONObject; import android.content.Context; import android.os.AsyncTask; public abstract class AbstractWorkerTask extends AsyncTask<Object, Integer, JSONObject>{ private TaskNotifier notifier; private Context appContext; public AbstractWorkerTask(Context context, TaskNotifier notifier) { this.notifier = notifier; this.appContext = context; } @Override protected void onCancelled() { super.onCancelled(); } @Override protected void onPreExecute() { super.onPreExecute(); } public TaskNotifier getNotifier() { return notifier; } public void setNotifier(TaskNotifier notifier) { this.notifier = notifier; } public Context getAppContext() { return appContext; } public void setAppContext(Context appContext) { this.appContext = appContext; } }