Here you can find the source of msgLong(final Context c, final String msg)
Parameter | Description |
---|---|
c | Application Context |
msg | Message to send |
public static void msgLong(final Context c, final 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 c Application Context * @param msg Message to send */ public static void msgLong(final Context c, final String msg) { if (c != null && msg != null) { Toast.makeText(c, msg.trim(), Toast.LENGTH_LONG).show(); } } }