Code example for FragmentActivity

Methods: onPostCreate

0
public abstract class BaseActivity extends FragmentActivity { 
    final ActivityHelper mActivityHelper = ActivityHelper.createInstance(this);
 
    @Override 
    protected void onPostCreate(Bundle savedInstanceState) {
        super.onPostCreate(savedInstanceState);
        mActivityHelper.onPostCreate(savedInstanceState);
    } 
 
    @Override 
    public boolean onKeyLongPress(int keyCode, KeyEvent event) {
        return mActivityHelper.onKeyLongPress(keyCode, event) ||
                super.onKeyLongPress(keyCode, event);
    } 
 
    @Override 
    public boolean onKeyDown(int keyCode, KeyEvent event) {
        return mActivityHelper.onKeyDown(keyCode, event) ||
                super.onKeyDown(keyCode, event);
    }