get Package Name from Context - Android App

Android examples for App:Package

Description

get Package Name from Context

Demo Code


//package com.java2s;

import android.content.Context;

public class Main {

    public static String getPackageName(Context context) {
        return context.getPackageName();
    }/*from  w  ww . jav a  2  s.  co m*/
}

Related Tutorials