I am having some trouble using AsyncTask as I have never come across it before and have no clue what I am doing with it.
AsyncTask
Basically I am getting a force
By checking the documentaion here..
You need to put the create connection part in the doInBackground.. then in the onPostExecute do whatever you want to update the ui.
doInBackground
onPostExecute