Code example for Editable

Methods: toString

0
  public static boolean isEmpty(CharSequence value) {
    return value == null || isEmpty(value.toString());
  } 
 
  public static boolean isEmpty(Editable value) {
    return value == null || isEmpty(value.toString());
  } 
 
  public static void showAlertDialog(Context context, String title, String message) {
    AlertDialog.Builder dialog = new AlertDialog.Builder(context);
    dialog.setTitle(title);
    dialog.setMessage(message);
    dialog.setIcon(android.R.drawable.ic_dialog_alert);
    dialog.setPositiveButton(android.R.string.ok, null);
    dialog.show();
  } 
 
  // XXX-S The consumers of these are way way down in the audio/microphone code. 
  // Is it possible to refactor them so that they bubble up their errors in a way 
  // that's a little cleaner than reaching back up from all the way down there? 
  public static void dieWithError(int msgId) {