Main.java Source code

Java tutorial

Introduction

Here is the source code for Main.java

Source

//package com.java2s;

import android.content.Context;

public class Main {
    private static Context appContext;

    /**
     * Return the app package name
     *
     * @return Return the app package name
     */
    public static String getAppPackageName() {
        Context context = getAppContext();
        return context.getPackageName();
    }

    public static Context getAppContext() {
        return appContext;
    }
}