show Info Message via Toast - Android User Interface

Android examples for User Interface:Toast

Description

show Info Message via Toast

Demo Code


//package com.java2s;
import android.content.Context;
import android.widget.Toast;

public class Main {
    public static void showInfoMessage(Context context, int message) {
        Toast.makeText(context, message, Toast.LENGTH_SHORT).show();
    }/* w  w w .  j a  v a  2 s. c  o m*/
}

Related Tutorials