Java tutorial
//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; } }