This may help someone with a genuine mistake.
Note that the second argument in AsyncTask is Progress
AsyncTask<Params, Progress, Result>
Make sure your data type matches.
AsyncTask<URL, String, Long>{
protected Long doInBackground(URL... urls) {
return long;
}
protected void onProgressUpdate(String... values) {}
protected void onPostExecute(Long result) {}
}
source
share