Code example for ScrollView

Methods: scrollTo

0
	private final Handler handler = new Handler() {
		@Override 
		public void handleMessage(Message msg) { 
			Log.d(LOG_TAG, "GOT MESSAGE FROM FILE READER!"); 
			tv.append(msg.getData().getString("line") + "\n"); 
			sv.scrollTo(0, tv.getHeight());  
		} 
	}; 
	 
	private void startPipeRead() { 
		Thread t = new Thread(null, new Runnable() {
			 public void run() { 
				try { 
					BufferedReader in = new BufferedReader(new FileReader(PIPE_PATH));
					String line;
					while (true) { 
						line = in.readLine();
						if (line != null) {
							Log.d(LOG_TAG, line);
							Message msg = Message.obtain();
							msg.what = 0;