Android AlertDialog Create showAlertText(String alertText, Context context)

Here you can find the source of showAlertText(String alertText, Context context)

Description

show Alert Text

Declaration

public static void showAlertText(String alertText, Context context) 

Method Source Code

//package com.java2s;
import android.content.Context;
import android.widget.Toast;

public class Main {
    public static void showAlertText(String alertText, Context context) {
        Toast.makeText(context, alertText, Toast.LENGTH_LONG).show();
    }//from   ww  w  . ja  v  a  2 s  .  com
}

Related

  1. showAlert(Context context, int titleId, String message)
  2. showAlert(Context context, int titleId, String message, CharSequence positiveButtontxt, DialogInterface.OnClickListener positiveListener)
  3. showAlert(Context context, int titleId, int messageId)
  4. showAlert(Context context, int titleId, int messageId, CharSequence positiveButtontxt, DialogInterface.OnClickListener positiveListener, CharSequence negativeButtontxt, DialogInterface.OnClickListener negativeListener)
  5. showAlert(Context parent, String alert)
  6. showInfoDialog(Context context, String message, String titleStr, String positiveStr, DialogInterface.OnClickListener onClickListener)
  7. alert(Context act, String msg)
  8. alert(Context act, int strId)
  9. showErrorDialog(Context context, int title, int message)