Thanks,
It works fine now.

On Wed, Nov 11, 2009 at 9:10 PM, jbrohan <[email protected]> wrote:

> <?xml version="1.0" encoding="utf-8"?>
> <manifest xmlns:android="http://schemas.android.com/apk/res/android";
>      package="com.example.johnprog"
>      android:versionCode="1"
>      android:versionName="1.0">
>      <uses-permission android:name="android.permission.INTERNET" />
>       <uses-permission
> android:name="android.permission.RECORD_AUDIO" />
>       <uses-permission
> android:name="android.permission.READ_PHONE_STATE" />
>
>    <application android:icon="@drawable/micon"
>
> The error message tells you the answer.....put in a permission record
> in the manifest.xml file.
> This snippet from mine shows you where they go!
> Good Luck
> John
>
> On Nov 9, 3:01 am, mapper <[email protected]> wrote:
> > Hi
> > When I am sending and receiving the response I got this error:
> > java.net.SocketException: Permission denied (maybe missing INTERNET
> > permission)
> >
> > I am using this
> >
> > /* makes a request and get the response as string */
> > String responseStr = null;
> > HttpClient client = new DefaultHttpClient();
> > HttpGet httpGetRequest = new HttpGet(url);
> > HttpResponse response = client.execute(httpGetRequest);
> > if (response.getStatusLine().getStatusCode() == HttpStatus.SC_OK) {
> >         ByteArrayOutputStream os = new ByteArrayOutputStream();
> >         response.getEntity().writeTo(os);
> >         responseStr = os.toString();
> >
> > }
> >
> > /* parse the string response using the android JSON library */
> > JSONObject json = new JSONObject(responseStr);
> > JSONObject feed = (JSONObject) json.get("feed");
> > JSONArray entry = (JSONArray) feed.get("entry");
> > int length = entry.length();
> >
> > http://groups.google.com/group/android-beginners/browse_thread/thread...
> >
> > How can I configured the Internet settings in the Emulator.
> >
> > Thanks in Advance
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Beginners" group.
> To post to this group, send email to [email protected]
> To unsubscribe from this group, send email to
> [email protected]<android-beginners%[email protected]>
> For more options, visit this group at
> http://groups.google.com/group/android-beginners?hl=en

-- 
You received this message because you are subscribed to the Google
Groups "Android Beginners" 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-beginners?hl=en

Reply via email to