Code example for Uri.Builder

Methods: build, scheme

0
		return callIntents;
	} 
 
	public static Intent getPriviledgedIntent(String number) {
		Intent i = new Intent("android.intent.action.CALL_PRIVILEGED");
		Builder b = new Uri.Builder(); 
		b.scheme("tel").appendPath(number);
		i.setData( b.build() );
		return i;
	} 
	 
 
	public static List<ResolveInfo> getPossibleActivities(Context ctxt, Intent i){
		PackageManager pm = ctxt.getPackageManager();
		try { 
			return pm.queryIntentActivities(i, PackageManager.MATCH_DEFAULT_ONLY | PackageManager.GET_RESOLVED_FILTER);
		}catch(NullPointerException e) {
			return new ArrayList<ResolveInfo>();
		} 
	} 
Connect your IDE to all the code out there  Get Codota for Java