Android Toast Create makeToast(String msg, int length, Activity mainAct)

Here you can find the source of makeToast(String msg, int length, Activity mainAct)

Description

make Toast

Declaration

public static void makeToast(String msg, int length, Activity mainAct) 

Method Source Code

//package com.java2s;
import android.app.Activity;

import android.widget.Toast;

public class Main {
    public static void makeToast(String msg, int length, Activity mainAct) {
        Toast.makeText(mainAct, msg, length).show();
    }//from  www  .  j  a v  a 2  s.c  o m
}

Related

  1. formatToastDist(String message, int value, String unit)
  2. formatToastTemp(String message, int value, String unit)
  3. showMessage(final Activity activity, final String message)
  4. showToast(Activity activity, String message)
  5. showToast(final Activity ctx, final String text, final int position, final boolean alive)
  6. displayToast(String message, Activity activity)
  7. showToast(Context context, String message)
  8. showToast(Context context, int id)
  9. showToast(Context context, int stringId)