Return a value from AsyncTask in Android [duplicate]

That’s what onPostExecute() is for. It runs on the UI thread and you can deliver your result from there to the screen (or anywhere else you need). It won’t be called until the final result is available. If you want to deliver intermediate results, take a look at onProgressUpdate()

Leave a Comment

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)