Code example for ActivityInfo

0
        } 
        return resolveInfos;
    } 
 
    private ResolveInfo createResolveInfo(String packageName) {
        ActivityInfo activityInfo = new ActivityInfo();
        activityInfo.packageName = packageName;
        activityInfo.name = "FooClass";
        ResolveInfo resolveInfo = new ResolveInfo();
        resolveInfo.activityInfo = activityInfo;
        return resolveInfo;
    } 
 
    @Override 
    public String[] getPackagesForUid(int uid) {
        return new String[] {mPackages[0]};
    } 
 
    @Override 
    public int checkPermission(String permName, String pkgName) {
Connect your IDE to all the code out there  Get Codota for Java