show Toast - Android User Interface

Android examples for User Interface:Toast

Description

show Toast

Demo Code


//package com.java2s;
import android.app.Activity;

import android.widget.Toast;

public class Main {
    public static void showToast(Activity ac, String content) {
        Toast.makeText(ac, content, Toast.LENGTH_SHORT).show();
    }//from  w w w .ja  v a 2 s .  c o  m
}

Related Tutorials