Code example for RemoteViews

Methods: setUri

0
	} 
 
	@Kroll.method 
	public void setUri(int viewId, String methodName, String value)
	{ 
		remoteViews.setUri(viewId, methodName, Uri.parse(value));
	} 
 
	@Kroll.method 
	public void setImageViewResource(int viewId, int srcId)
	{ 
		remoteViews.setImageViewResource(viewId, srcId);
	} 
 
	@Kroll.method 
	public void setImageViewUri(int viewId, String uriString)
	{ 
		Uri uri = Uri.parse(resolveUrl(null, uriString));
		remoteViews.setImageViewUri(viewId, uri);
	}