All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.github.devnied.emvnfccard.utils.SimpleAsyncTask Maven / Gradle / Ivy

There is a newer version: 2.1.1
Show newest version
package com.github.devnied.emvnfccard.utils;

import android.os.AsyncTask;
import android.util.Log;

/**
 * Simple Async task
 * 
 * @author Millau Julien
 * 
 */
public abstract class SimpleAsyncTask extends AsyncTask {

	@Override
	protected Object doInBackground(final Void... params) {

		Object result = null;

		try {
			doInBackground();
		} catch (Exception e) {
			result = e;
			Log.e(SimpleAsyncTask.class.getName(), e.getMessage(), e);
		}

		return result;
	}

	protected abstract void doInBackground();

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy