private String neededPermissionForFeature(String feature){
  String neededPermission=null;
  if (FEATURE_KEY_PREF_CONTACTS.equals(feature)) {
    neededPermission=Manifest.permission.READ_CONTACTS;
  }
 else   if (FEATURE_KEY_PREF_DIALER.equals(feature)) {
    neededPermission=Manifest.permission.WRITE_CALL_LOG;
  }
  return neededPermission;
}

private String neededPermissionForFeature ( String feature ) { String neededPermission = null ; if ( FEATURE_KEY_PREF_CONTACTS . equals ( feature ) ) { neededPermission = Manifest . permission . READ_CONTACTS ; } else if ( FEATURE_KEY_PREF_DIALER . equals ( feature ) ) { neededPermission = Manifest . permission . WRITE_CALL_LOG ; } return neededPermission ; }
provides the permission associated to a feature
