public String appname = null; public Drawable icon = null; private void getAppInfo(Context context) { PackageManager pm = context.getPackageManager(); try { ApplicationInfo applicationinfo = pm.getApplicationInfo(pkgname, 0); icon = pm.getApplicationIcon(applicationinfo); appname = (String)pm.getApplicationLabel(applicationinfo); } catch (NameNotFoundException e) { } }
0 件のコメント:
コメントを投稿