Main.java Source code

Java tutorial

Introduction

Here is the source code for Main.java

Source

//package com.java2s;
//License from project: Open Source License 

import android.content.Context;

import android.widget.Toast;

public class Main {
    /**
     * Shows a toast message within the context, showing the message for a
     * certain duration
     * 
     * @param context
     * @param message
     * @param duration
     */
    public static void showToastMessage(Context context, int message, int duration) {
        Toast toast = Toast.makeText(context, message, duration);
        toast.show();
    }
}