I\'ve created an image upload AsyncTask based on a function. And after uploading, I get this error on onPostExecute(). I read up some StackOverflow
AsyncTask
onPostExecute()
You are attempting to update the UI from a background thread. Either move the toast to onPostExecute, which executes on the UI thread (recommended), or call runOnUiThread.
onPostExecute
runOnUiThread
runOnUiThread(new Runnable() { public void run() { // runs on UI thread } });