Code example for Permission

Methods: getName

0
        } 
 
        @Override 
        public void checkPermission(Permission permission) {
            if (permission instanceof SecurityPermission) {
                if (permissionName.equals(permission.getName())) {
                    called = true;
                } 
            } 
        } 
    } 
    // END android-added 
}