Android Open Source - esr-scanner History Export Update Async Task

From Project

Back to project page esr-scanner.


The source code is released under:

Apache License

If you think the Android project esr-scanner listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.

Java Source Code

package ch.luklanis.esscan.history;
/*from   w w  w .  ja v  a2s  .  c om*/
import android.os.AsyncTask;
import android.text.TextUtils;

public final class HistoryExportUpdateAsyncTask extends AsyncTask<HistoryItem, Void, Void> {

    private final HistoryManager historyManager;
    private final String fileName;

    public HistoryExportUpdateAsyncTask(HistoryManager historyManager, String fileName) {
        this.historyManager = historyManager;
        this.fileName = fileName;

    protected Void doInBackground(HistoryItem... params) {
        if (params.length > 0) {
            for (HistoryItem item : params) {
                if (!TextUtils.isEmpty(item.getDTAFilename())) {
                    historyManager.updateHistoryItemFileName(item.getItemId(), fileName);

        return null;

Java Source Code List