Problem connecting to servlet From Android client
问题 I am trying to connect to the Servlet (Tomcat localhost). Here is my code. ServletTest.java (the client) public class ServletTest extends Activity { private static final String TAG = "Test"; /** Called when the activity is first created. */ protected static EditText username; protected static EditText password; @Override public void onCreate(Bundle icicle) { super.onCreate(icicle); setContentView(R.layout.main); username = (EditText)findViewById(R.id.username); Button goButton = (Button