I have some code below:
protected void testConnection(String url) { DefaultHttpClient httpclient = new DefaultHttpClient(); HttpGet httpget = new Htt
Starting from API 11, you can not manipulate network (time-consuming) operations on main thread. Use AsyncTask or Thread to perform such operations.
AsyncTask
Thread