Does the browser work on your device or emulator? Perhaps the device, in general, does not have network access. If this is an emulator, make sure you're dealing appropriately with proxies (preferably eliminating them).
Cheers, Justin Android Team @ Google On Jun 17, 8:09 am, "RS.Giridaran" <[email protected]> wrote: > <uses-permission android:name="android.permission.INTERNET" /> > > Uses Permission should be added in your manifest file under the > <manifest> tag > > On Jun 16, 1:57 pm, "[email protected]" <[email protected]> > wrote: > > > > > here is my code: > > it always interrupt at conn.connect(); > > try { > > url+=input.getText().toString(); > > myFileUrl = new URL(url); > > } > > catch (MalformedURLException e) { > > e.printStackTrace(); > > } > > try { > > HttpURLConnection conn = (HttpURLConnection) myFileUrl > > .openConnection(); > > conn.setDoInput(true); > > conn.connect(); > > InputStream is = conn.getInputStream(); > > val=inputStreamToString(is); > > is.close(); > > } > > catch (IOException e) { > > e.printStackTrace(); > > } --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~----------~----~----~----~------~----~------~--~---

