show Toast LENGTH LONG - Android android.widget

Android examples for android.widget:Toast

Description

show Toast LENGTH LONG

Demo Code

import android.app.Activity;
import android.util.Log;
import android.widget.Toast;

public class Main{

    public static void showToast(Activity activity, String msg) {
        String s = String.format("animator: %s", msg);
        Toast.makeText(activity, s, Toast.LENGTH_LONG).show();
    }/*from   www  .j  a v a2s. c  om*/

}

Related Tutorials