Added logic on how to create an AsyncTask

Merging code which includes AsyncTask, its three generic types, and four
methods ::
onPreExecute, doInBackground, onProgressUpdate and onPostExecute.