Code example for PackageManager

Methods: getPackageInfo

0
		} 
        public ActivityInfo getChild(int groupPosition, int childPosition) {
        	//return groups.get(groupPosition).activities[childPosition]; 
        	PackageInfo tmp;
			try { 
				tmp = mPackageManager.getPackageInfo(groups.get(groupPosition).packageName, PackageManager.GET_ACTIVITIES);
	        	if(tmp.activities!=null)
	        		return tmp.activities[childPosition];
	        	else 
	        		return null; 
			} catch (NameNotFoundException e) {
				return null; 
			} 
 
        } 
        public long getChildId(int groupPosition, int childPosition) {
            return childPosition;
        } 
        public int getChildrenCount(int groupPosition) {
        	//return groups.get(groupPosition).activities.length; 
        	PackageInfo tmp;