Code example for ApplicationInfo

0
        return realContextWrapper == getApplicationContext() ? packageName : getApplicationContext().getPackageName();
    } 
 
    @Implementation 
    public ApplicationInfo getApplicationInfo() {
        ApplicationInfo appInfo = new ApplicationInfo();
        appInfo.name = appName;
        appInfo.packageName = packageName;
        appInfo.processName = packageName;
        return appInfo;
    } 
 
    /** 
     * Non-Android accessor to set the application name. 
     * 
     * @param name 
     */ 
    public void setApplicationName(String name) {
        appName = name;
    }