This is my android application:
package org.me.sampleandroidservlet;
import android.app.Activity;
import android.os.Bundle;
import android.widget.TextView;
impo
Your code is looks incomplete:
try this snippet:
String serverResponse =""; // it will hold the response returned by the server
try
{
HttpClient http=new DefaultHttpClient();
HttpGet httpget = new HttpGet(
"http://10.0.2.2:8084/SampleWebUser/SampleUser?hello=hi");
HttpResponse response = http.execute(httpget);
serverResponse = EntityUtils.toString(resEntity); // Server response
/*
Do your other stuff here.
*/
}
catch(Exception ex)
{
ex.printStackTrace();
}