Code example for ApplicationInfo

0
        } 
    } 
 
    @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 void setInstalledPackages(List<PackageInfo> packages) {
        this.mPackages = packages;
    } 
 
    @Override 
    public List<PackageInfo> getInstalledPackages(int flags) {
        return mPackages;
    } 
 
Contextual code suggestions in your IDE  Get Codota for Java