Code example for Message

Methods: getData

0
			// Create a handler bound to this thread 
			handler = new Handler() {
				@Override 
				public void handleMessage(Message msg) {
					Log.i("HANDLER", "MyLooper called");
					Bundle data = msg.getData();
					if (data != null) {
						count++;
						if (count >= border) {
							mainHandler.sendEmptyMessage(count);
							count = 0;
						} 
					} 
				} 
			}; 
			Looper.loop();
			super.run(); 
		} 
	} 
 
	private class Worker extends Thread {