Android APK Information Get getAppInfo(Context c, String name)

Here you can find the source of getAppInfo(Context c, String name)

Description

get App Info

Declaration

private static ApplicationInfo getAppInfo(Context c, String name)
            throws NameNotFoundException 

Method Source Code

//package com.java2s;

import android.content.Context;
import android.content.pm.ApplicationInfo;
import android.content.pm.PackageManager;
import android.content.pm.PackageManager.NameNotFoundException;

public class Main {
    private static ApplicationInfo getAppInfo(Context c, String name)
            throws NameNotFoundException {
        PackageManager pm = c.getPackageManager();
        return pm.getApplicationInfo(name,
                PackageManager.GET_UNINSTALLED_PACKAGES);
    }//from   ww w.j  a v  a  2s.  c o m
}

Related

  1. copyToSystemApp(String apkFile)
  2. getApp()
  3. getAppCacheDir(Context context)
  4. getAppContext()
  5. getAppInfo(Context c, String name)
  6. getAppLabel(Context c, int uid)
  7. getAppLabel(Context c, int uid)
  8. getAppPkg(Context c, int uid)
  9. getAppPkg(Context c, int uid)