android.util.Log.i(LIBRARY_NAME,String.format(Locale.getDefault(),"getSafParameter is not supported on API Level %d",Build.VERSION.SDK_INT));
resultHandler.errorAsync(result,"SELECT_FAILED",String.format(Locale.getDefault(),"getSafParameter is not supported on API Level %d",Build.VERSION.SDK_INT));
resultHandler.errorAsync(result,"GET_SAF_PARAMETER_FAILED",String.format(Locale.getDefault(),"getSafParameter is not supported on API Level %d",Build.VERSION.SDK_INT));
return;
}
if(context!=null){
finalUriuri=Uri.parse(uriString);
if(uri==null){
Log.w(LIBRARY_NAME,String.format("Cannot getSafParameter using parameters writable: %s, uriString: %s. Uri string cannot be parsed.",writable,uriString));
Log.w(LIBRARY_NAME,String.format("Cannot getSafParameter using parameters uriString: %s, openMode: %s. Uri string cannot be parsed.",uriString,openMode));
resultHandler.errorAsync(result,"GET_SAF_PARAMETER_FAILED","Uri string cannot be parsed.");
Log.d(LIBRARY_NAME,String.format("getSafParameter using parameters writable: %s, uriString: %s completed with saf parameter: %s.",writable,uriString,safParameter));
Log.d(LIBRARY_NAME,String.format("getSafParameter using parameters uriString: %s, openMode: %s completed with saf parameter: %s.",uriString,openMode,safParameter));
resultHandler.successAsync(result,safParameter);
}
}else{
Log.w(LIBRARY_NAME,String.format("Cannot getSafParameter using parameters writable: %s, uriString: %s. Context is null.",writable,uriString));
Log.w(LIBRARY_NAME,String.format("Cannot getSafParameter using parameters uriString: %s, openMode: %s. Context is null.",uriString,openMode));
resultHandler.errorAsync(result,"INVALID_CONTEXT","Context is null.");