Code example for Handler

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