Code example for FragmentActivity

Methods: onKeyDown

0
                                        || super.onKeyLongPress(keyCode, event);
    } 
 
    @Override 
    public boolean onKeyDown(int keyCode, KeyEvent event) {
        return mActivityHelper.onKeyDown(keyCode, event) || super.onKeyDown(keyCode, event);
    } 
 
    @Override 
    public boolean onCreateOptionsMenu(Menu menu) {
        return mActivityHelper.onCreateOptionsMenu(menu) || super.onCreateOptionsMenu(menu);
    } 
 
    @Override 
    public boolean onOptionsItemSelected(MenuItem item) {
        return mActivityHelper.onOptionsItemSelected(item) || super.onOptionsItemSelected(item);
    } 
 
    /** 
     * Returns the {@link ActivityHelper} object associated with this activity. 
     */