Code example for Uri.Builder

Methods: build, scheme

0
    */ 
 
 
    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;
    } 
 
    private static List<ResolveInfo> callIntents = null;
    private static ResolveInfo defaultCallIntent = null;
 
    /** 
     * Find packages registered for priviledged call management 
     * @param ctxt the application context 
     * @return list of package resolved info for a priviledged call intent 
     */ 
    public final static List<ResolveInfo> resolveActivitiesForPriviledgedCall(Context ctxt) {
        if (!sIsInitialized) {