i am trying to connect to a server through an android fone but th
epplication gets killed as soon as HTTP_POST is called.

here's the code snippet:

HttpClient client = new DefaultHttpClient();
             HttpPost post = new HttpPost(address);

 HttpResponse response = client.execute(post);
             String g=response.toString();

It gives me the following error:

[2010-05-27 11:05:11 - HelloAndroid] ActivityManager: Starting: Intent
{ action=android.intent.action.MAIN
categories={android.intent.category.LAUNCHER}
comp={com.example.helloandroid/
com.example.helloandroid.HelloAndroid} }
[2010-05-27 11:05:11 - HelloAndroid] ActivityManager: [1]
Killed                  am start -n com....


i have given the appropriate permission fro connection to internet as
well in the AndroidManifest.xml file but still the application gets
killed.:
android:permission="android.permission.INTERNET"

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