Here you can find the source of getPackageName(final Context context)
Parameter | Description |
---|---|
context | Context |
public static String getPackageName(final Context context)
//package com.java2s; //License from project: Apache License import android.content.Context; public class Main { /**/*from w ww. j a v a 2 s . c o m*/ * Get the application package name. * * @param context Context * @return package name */ public static String getPackageName(final Context context) { return context.getPackageName(); } }