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 {
    /**
     * This will display the message as a short toast
     * @param currentActivity - the activity you are calling this from
     * @param message - the message to display
     */
    public static void toastShort(Context currentActivity, String message) {
        Toast.makeText(currentActivity, message, Toast.LENGTH_SHORT).show();
    }
}