Sub cmdgetdata_Click
register.InitializeGet("http://mywebsite.com")
client.Execute(register,1)
cmdgetdata.Text = "test"
End Sub
Sub client_ResponseSuccess (Response As HttpResponse, TaskId As Int)
'populate data in textfield for example
txtdata.Text = Response.GetString("UTF8")
End sub
When using this code it works with on Android versions lower than the honeycomb version.. But higher it gives the error: android os.networkonmainthreadexception
I read that the response cannot run on a main thead. But how to solve this? Please help..
register.InitializeGet("http://mywebsite.com")
client.Execute(register,1)
cmdgetdata.Text = "test"
End Sub
Sub client_ResponseSuccess (Response As HttpResponse, TaskId As Int)
'populate data in textfield for example
txtdata.Text = Response.GetString("UTF8")
End sub
When using this code it works with on Android versions lower than the honeycomb version.. But higher it gives the error: android os.networkonmainthreadexception
I read that the response cannot run on a main thead. But how to solve this? Please help..