Code example for ActionBarActivity

Methods: onPause

0
		BusProvider.getInstance().register(this);
	} 
	 
	@Override 
	protected void onPause() { 
		super.onPause(); 
		BusProvider.getInstance().unregister(this);
	} 
	 
	protected void postEvent(Object event) {
		BusProvider.getInstance().post(event);
	} 
	 
	@TargetApi(Build.VERSION_CODES.HONEYCOMB_MR2)
	protected void showProgress(final boolean show, final String message) {
		final StatusView statusView = getStatusView();
		if (statusView == null) {
			return; 
		} 
        if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.HONEYCOMB_MR2) {
            int shortAnimTime = getResources().getInteger(android.R.integer.config_shortAnimTime);