Hi Everyone, >From my android application Iam trying to connect to a tomcat webserver which is running on my local machine.
I am unable to connect. Can an Android applicaiton connect to external web application which is running on localhost or www. Please clarify my doubts. If possible please send my sample code or any working application source code. Here is what Iam trying to do..... Androidmanifest.xml <?xml version="1.0" encoding="utf-8"?> <manifest xmlns:android="http://schemas.android.com/apk/res/android" package="com.covalense.android.samples"> <uses-sdk android:minSdkVersion="11" /> <uses-permission android:name="android.permission.ACCESS_FINE_LOCATION"/> <uses-permission android:name="android.permission.ACCESS_LOCATION"/> <uses-permission android:name="android.permission.ACCESS_GPS"/> <uses-permission android:name="android.permission.ACCESS_ASSISTED_GPS"/> <uses-permission android:name="android.permission.INTERNET"/> <uses-permission android:name="android.permission.ACCESS_FINE_LOCATION" /> <application android:icon="@drawable/icon" android:label="@string/ app_name"> <activity android:name=".UseGps" android:label="@string/app_name"> <intent-filter> <action android:name="android.intent.action.MAIN" /> <category android:name="android.intent.category.LAUNCHER" /> </intent-filter> </activity> </application> </manifest> In Activity Class HttpClient httpclient = new DefaultHttpClient(); HttpPost httppost = new HttpPost("http://10.0.2.2:8084/ AndroidWebTest/TestServlet"); HttpResponse response = httpclient.execute(httppost); Please help me iam new to android. If any one did a similar application please send me the code to my mail [email protected] Thanks in advance. -- 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

