Android Open Source - esr-scanner Get History 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  ww .  j a  va 2 s .  c om*/
import android.os.AsyncTask;

import java.util.List;

public class GetHistoryAsyncTask extends AsyncTask<Void, Void, Boolean> {

    private HistoryFragment historyFragment;
    private HistoryManager historyManager;
    private HistoryItemAdapter adapter;

    public GetHistoryAsyncTask(HistoryFragment historyFragment, HistoryManager historyManager) {
        this.historyFragment = historyFragment;
        this.historyManager = historyManager;


        adapter = new HistoryItemAdapter(historyFragment.getActivity());

    protected Boolean doInBackground(Void... params) {

        List<HistoryItem> items = historyManager.buildAllHistoryItems();

        for (HistoryItem item : items) {

        return true;

    protected void onPostExecute(Boolean result) {
        if (result) {

Java Source Code List