Code example for Intent

Methods: createChooser

0
	{ 
		IntentProxy intent = new IntentProxy();
		intent.setInternalType(IntentProxy.TYPE_BROADCAST);
		intent.handleCreationArgs(this, args);
		return intent;
	} 
 
	@Kroll.method 
	public IntentProxy createIntentChooser(IntentProxy target, String title)
	{ 
		return new IntentProxy(Intent.createChooser(target.getIntent(), title));
	} 
 
	@Kroll.getProperty(name="R") 
	public RProxy getR() { 
		if (r == null) {
			r = new RProxy(RProxy.RESOURCE_TYPE_ANDROID);
		} 
		return r;
	}