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 long toast
     * @param currentActivity - the activity you are calling this from
     * @param message - the message to display
     */
    public static void toastLong(Context currentActivity, String message) {
        Toast.makeText(currentActivity, message, Toast.LENGTH_LONG).show();
    }
}