Android Context Get getPackageName(final Context context)

Here you can find the source of getPackageName(final Context context)

Description

Get the application package name.

License

Apache License

Parameter

Parameter Description
context Context

Return

package name

Declaration

public static String getPackageName(final Context context) 

Method Source Code

//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();
    }
}

Related

  1. getMusesAppContext()
  2. getNameFromUri(Context context, Uri uri)
  3. getOffset(Context context)
  4. getOpenGLESVersion(final Context context)
  5. getOrientation(Context context, Uri photoUri)
  6. getPackageVersion(Context c)
  7. getPackageVersionAsInt(Context c)
  8. getPath(Context context, Uri uri)
  9. getPathFromUri(Context context, Uri uri)