<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
-~----------~----~----~----~------~----~------~--~---

Reply via email to