Code example for Intent

Methods: setComponent

0
    	resolveList.put( intent, info );
    } 
     
	@Override 
	public Intent getLaunchIntentForPackage(String packageName) {
		Intent i = new Intent();
		i.setComponent( new ComponentName(packageName, "") );
		return i;
	} 
	 
	@Override 
	public CharSequence getApplicationLabel(ApplicationInfo info) {
		return info.name;
	} 
	 
	@Override 
	public void setComponentEnabledSetting(ComponentName componentName, int newState, int flags) {
		componentList.put(componentName, new ComponentState(newState, flags));
	} 
	 
	/**