Android TCP communication error

view story

http://stackoverflow.com – I am very new to Android Programming . My code in android is as follows public class AndroidClient extends Activity { EditText textOut; TextView textIn; Socket socket = null; DataOutputStream dataOutputStream = null; DataInputStream dataInputStream = null; /** Called when the activity is first created. */ @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_android_client); textOut = (EditText)findViewById(R.id.textout); Button buttonSend = (Button)findViewById(R.id.send); textIn = (TextView)findVi (HowTos)