public static void logAndShowError(Activity activity,String tag,String message){
  String errorMessage=getErrorMessage(message);
  Log.e(tag,errorMessage);
  showErrorInternal(activity,errorMessage);
}

public static void logAndShowError ( Activity activity , String tag , String message ) { String errorMessage = getErrorMessage ( message ) ; Log . e ( tag , errorMessage ) ; showErrorInternal ( activity , errorMessage ) ; }
logs the given message and shows an error alert dialog with it .
