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.view.Gravity;
import android.widget.Toast;

public class Main {
    public static void toastMsg(String msg, Context con) {
        Toast toast = Toast.makeText(con.getApplicationContext(), msg, Toast.LENGTH_LONG);
        toast.setGravity(Gravity.TOP, 0, 80);
        toast.show();
    }
}