Code example for Socket

Methods: close, shutdownInput, shutdownOutput

0
	} 
 
	@Override 
	protected void onStop() { 
		try { 
			s.shutdownInput();
			s.shutdownOutput();
			s.close();
		} catch (IOException e) {
			e.printStackTrace();
		} 
		terminate = true;
		super.onPause(); 
	} 
	//METHOD WHICH WILL HANDLE DYNAMIC INSERTION 
	public void addItems(View v) {
		out.println(getText.getText().toString());
		getText.setText("");
	} 
 
	public boolean onEditorAction(TextView v, int actionId, KeyEvent event) {