Code example for ScrollingMovementMethod

0
		tv.append("\nSending File "+IOHelpers.getRealPathFromURI(uri, this));
    } 
     
	private void appendToOutput(String str) {
		tv.append(str);
		tv.setMovementMethod(new ScrollingMovementMethod());
	} 
	 
	private void appendToOutput(byte[] data) {
		String str;
		try { 
			str = new String(data, "UTF8");
			appendToOutput(str);
		} catch (UnsupportedEncodingException e) {
			// TODO Auto-generated catch block 
			e.printStackTrace();
		} 
	} 
 
     
	private class TCPClientTask extends AsyncTask<Void, byte[], Boolean> {