Here you can find the source of msgLong(Context context, String msg)
Parameter | Description |
---|---|
context | Application Context |
msg | Message to send |
public static void msgLong(Context context, String msg)
//package com.java2s; import android.content.Context; import android.widget.Toast; public class Main { /**// w ww. j av a2 s. c o m * Long toast message * * @param context Application Context * @param msg Message to send */ public static void msgLong(Context context, String msg) { if (context != null && msg != null) { Toast.makeText(context, msg.trim(), Toast.LENGTH_LONG).show(); } } }