[Android] Application Info 얻기

Posted by Find my true self Fimtrus
2012. 7. 23. 09:57 Programming/Android
PackageManager pm = getPackageManager();
String packageName = "패키지명";
//appliation label 정보 얻기
try {
	ai = pm.getApplicationInfo(packageName, PackageManager.GET_META_DATA);
}
catch (NameNotFoundException e) {
}

ApplicationInfo ai = null;
String labelName = pm.getApplicationLabel(ai).toString();


이 댓글을 비밀 댓글로