public class AsyncTaskSample extends AsyncTask<Void, Integer, String> { //Activiyへのコールバック用interface public interface AsyncTaskCallback { void preExecute(); void postExecute(String result); void progressUpdate(int progress); void cancel(); } private AsyncTaskCallback callback = null;; public AsyncTaskSample(AsyncTaskCallback _callback) { this.callback = _callback; } @Override protected void onPreEx