Code example for Method

Methods: getReturnTypeinvoke

0
            } 
        } 
 
        public boolean onMenuItemClick(MenuItem item) {
            try { 
                if (mMethod.getReturnType() == Boolean.TYPE) {
                    return (Boolean) mMethod.invoke(mRealOwner, item);
                } else { 
                    mMethod.invoke(mRealOwner, item);
                    return true; 
                } 
            } catch (Exception e) {
                throw new RuntimeException(e);
            } 
        } 
    } 
 
    /** 
     * State for the current menu. 
     * <p> 
     * Groups can not be nested unless there is another menu (which will have