Android AlertDialog Create alert(Context ctx, String msg)

Here you can find the source of alert(Context ctx, String msg)

Description

alert

Parameter

Parameter Description
ctx a parameter
msg a parameter

Declaration

public static void alert(Context ctx, String msg) 

Method Source Code

//package com.java2s;

import android.content.Context;

import android.widget.Toast;

public class Main {
    /**/*from w w w.java2 s .  co  m*/
     * 
     * @param ctx
     * @param msg
     */
    public static void alert(Context ctx, String msg) {
        Toast.makeText(ctx, msg, Toast.LENGTH_LONG).show();
    }
}

Related

  1. confirm(String title, String message, Context context, DialogInterface.OnClickListener onConfirmListener)
  2. confirm(String title, View view, Context context, DialogInterface.OnClickListener onConfirmListener)
  3. confirmBuilder(String title, Context context, DialogInterface.OnClickListener onConfirmListener)
  4. canShowAlertDialog(Context context)
  5. buildAlertMessageNoGps(final Context context)
  6. showAlert(Context context, String title, String message)
  7. showAlertDialog(Context context, String title, String message)
  8. manageAlertDialog( final Activity fourerrActivity, final String dialogTitle, final String dialogMessage)
  9. showAlertDialog(Context context, String title, String message, String btnString, DialogInterface.OnClickListener onClickListener)