Main.java Source code

Java tutorial

Introduction

Here is the source code for Main.java

Source

//package com.java2s;

import android.content.Context;
import android.widget.Toast;

public class Main {
    /**
     * Show a toaster witht message
     * @param con
     * @param message
     */
    public static void showToaster(Context con, String message) {
        Toast toast = Toast.makeText(con, message, Toast.LENGTH_LONG);
        toast.show();
    }
}