Code example for ApplicationInfo

0
            return new String[] { sCallingPackage };
        } 
 
        @Override 
        public ApplicationInfo getApplicationInfo(String packageName, int flags) {
            ApplicationInfo info = new ApplicationInfo();
            Integer uid = mReverse.get(packageName);
            info.uid = (uid != null) ? uid : -1;
            return info;
        } 
    } 
 
    public long createRawContact(boolean isRestricted, String name) {
        ensureCallingPackage(); 
        long rawContactId = createRawContact(isRestricted);
        createName(rawContactId, name);
        return rawContactId;
    } 
 
    public long createRawContact(boolean isRestricted) {
        ensureCallingPackage();