Code example for ApplicationInfo

Methods: loadIcon

0
	 * ���ݰ��� ��ѯ ͼ�� 
	 */ 
	public Drawable getAppIcon(String packname){
	  try { 
			 ApplicationInfo info =	pm.getApplicationInfo(packname, 0); 
			 return info.loadIcon(pm);
		} catch (NameNotFoundException e) {
			// TODO Auto-generated catch block 
			e.printStackTrace();
			return null; 
		} 
	} 
	 
	/* 
	 *��ȡ�����İ汾��   
	 */ 
	public String getAppVersion(String packname){
		 
		  try { 
			  PackageInfo packinfo =	pm.getPackageInfo(packname, 0);
Connect your IDE to all the code out there  Get Codota for Java