Code example for Handler

0
        super.onCreate(savedInstanceState);
		// set display size 
		final Display display = getWindowManager().getDefaultDisplay(); 
		ThumbSize.setScreenSize(display.getWidth(), display.getHeight());		
  	  	mConfigurationManager = ConfigurationManager.getInstance(this);
  	  	mUrlIntentController = new UrlIntentController(this, new Handler());
  	  	mUrlIntentController.setupStatusHandler();
	} 
	 
	@Override 
	protected void onPause() { 
		super.onPause(); 
		mUrlIntentController.onActivityPause();
		mConfigurationManager.onActivityPause();
	} 
	 
	@Override 
	protected void onResume() { 
		super.onResume(); 
		mUrlIntentController.onActivityResume(this);
		mConfigurationManager.onActivityResume(this);