Code example for Message

Methods: getData

0
public class Downloader extends BaseActivity implements Sayer, Runnable {
 
	final Handler handler = new Handler() {
		@Override 
		public void handleMessage(Message m) { 
			tv.append(m.getData().getCharSequence("text")); 
		} 
	}; 
 
	TextView tv;
 
	Updater updater;
 
	// PowerManager.WakeLock wl; 
 
	/** Called when the activity is first created. */ 
	@Override 
	public void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.download);