android HttpURLConnection no result -
i trying webpage android app following code. try { //processresponse(searchrequest(edittext.gettext().tostring())); stringbuilder response = new stringbuilder(); url url = new url("http://www.google.com"); log.v("gsearch", "url :" + url.tostring()); httpurlconnection httpurlconnection = (httpurlconnection) url.openconnection(); if (httpurlconnection.getresponsecode() == httpurlconnection.http_ok) { log.v("gsearch", "http ok"); } log.v("gsearch", "loaded"); } catch (exception e) { log.v("web content error", "e:"+e.getmessage()); } however, got following in logcat. v/gsearch﹕ url :http://www.google.com v/web content error﹕ e:null i have permission in manifest. <uses-permission android:name="android.permission.internet" /> please give me hint. you can idea code try...