You can declare it this way:
public void onUpdate(AsyncTask<?, ?, ?> task, boolean show) {
}
You can then use it by extending an AsyncTask
:
private class SomeTask extends AsyncTask<String, Integer, Long> {
@Override
protected Long doInBackground(String... params) {
// TODO Auto-generated method stub
return null;
}
}
and calling your method:
onUpdate(new SomeTask(), true);