Code example for PackageManager

Methods: getComponentEnabledSetting, loadIcon

0
			// time. We could move it to the drawing code (load only 
			// once the user actually sees an icon), but that would 
			// slow down the list view usage. One option possibly would 
			// be to load it on-demand, but do that again in a thread. 
			mCurrentPackage.icon =
				mAndroidPackage.applicationInfo.loadIcon(mPackageManager);
		} 
 
		mCurrentComponent = new ComponentInfo();
		mCurrentComponent.packageInfo = mCurrentPackage;
		mCurrentComponent.componentName = componentName;
		mCurrentComponent.componentLabel = getAttr("label");
		mCurrentComponent.defaultEnabled = !(getAttr("enabled") == "false");;
		mCurrentComponent.currentEnabledState =
		    mPackageManager.getComponentEnabledSetting(
			    new ComponentName(mCurrentPackage.packageName,
			    		mCurrentComponent.componentName));
	} 
 
	void endReceiver() { 
		if (mCurrentState == ParserState.InReceiver) {