show Toast - Android android.widget

Android examples for android.widget:Toast

Description

show Toast

Demo Code

import android.content.Context;
import android.widget.Toast;
import java.security.MessageDigest;

public class Main{

    public static void showToast(Context context, String message) {

        Toast.makeText(context, message, Toast.LENGTH_SHORT).show();
    }//from  w w w.j  ava 2  s. c o  m

}

Related Tutorials