TCP/IP on Android

view story

http://stackoverflow.com – I have an android application which I want to send a simple command to my `public class ActivitymainActivity extends Activity { private TextView textview; private Button button; @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activitymain); textview=(TextView) findViewById(R.id.EmailCount); button=(Button) findViewById(R.id.button1); textview.setText("Going in"); try{ Socket socket = new Socket("", 2727); OutputStream out = socket.getOutputStream(); (HowTos)