Android Uri.Builder - top ranked examples from Open Source projects

These code examples were ranked by Codota’s semantic indexing as the best open source examples for Android Uri.Builder class.

This code example shows how to use the following methods: appendQueryParameter, authority, path, scheme
		Intent myIntent = new Intent(android.content.Intent.ACTION_VIEW, Uri.parse(callUri.toString()));
		return myIntent;
	} 
 
	public static Intent createYoutubeIntent(MovieBean movie) {
		Builder youtubeUri = new Builder();
		youtubeUri.scheme("http");
		youtubeUri.authority("m.youtube.com");
		youtubeUri.path("results");
		youtubeUri.appendQueryParameter("q", new StringBuilder("\"").append(movie.getMovieName()).append("\" trailer").toString());
 
		StringBuilder youtubeUriStr = new StringBuilder("http://m.youtube.com/results?q=");
		youtubeUriStr.append(new StringBuilder("\"").append(Uri.encode(movie.getMovieName())).append("\"+trailer").toString());
		Intent myIntent = new Intent(android.content.Intent.ACTION_VIEW, Uri.parse(youtubeUriStr.toString()));
		return myIntent;
	} 
 
	public static Intent createTrailerIntent(YoutubeBean trailer) {
		Intent myIntent = new Intent(android.content.Intent.ACTION_VIEW, Uri.parse(trailer.getUrlVideo()));
		return myIntent;
Full Snippet Info
7
CodeRank
Stop searching for code, let great code find you!  Add Codota to your java IDE
This code example shows how to use the following methods: appendPath, authority, build, scheme
        values.put("dst", msg.getTo());
        values.put("via", bareTo);
        values.put("msg", text.trim());
        database.insert("msg", "_id", values);
 
        Builder builder = new Uri.Builder();
        builder.scheme("content");
        builder.authority("jabber-chat-db");
        builder.appendPath(bareTo);
        builder.appendPath(bareFrom);
        context.getContentResolver().notifyChange(builder.build(), null);
 
        setNotification(bareFrom, bareTo);
    } 
 
    /** 
     * Create a new notification for a given local/remote user pair. 
     * @param from The local account jid. 
     * @param to The remote account jid. 
     */ 
Full Snippet Info
7
CodeRank
Stop searching for code, let great code find you!  Add Codota to your java IDE
This code example shows how to use the following methods: appendPath, authority, build, scheme
            new String[]{accountJid, jid},
            null, 
            null, 
            "_id ASC" 
        ); 
        Builder builder = new Uri.Builder();
        builder.scheme("content");
        builder.authority("jabber-chat-db");
        builder.appendPath(accountJid);
        builder.appendPath(jid);
        cursor.setNotificationUri(context.getContentResolver(), builder.build());
        return cursor;
    } 
 
} 
Full Snippet Info
7
CodeRank
Stop searching for code, let great code find you!  Add Codota to your java IDE
This code example shows how to use the following methods: appendPath, authority, build, scheme
        values.put("jid", to);
        values.put("dst", to);
        values.put("src", from);
        values.put("msg", msg);
        Database.getDatabase(null, null).insert("msg", "_id", values);
        Builder builder = new Uri.Builder();
        builder.scheme("content");
        builder.authority("jabber-chat-db");
        builder.appendPath(from);
        builder.appendPath(to);
        getApplicationContext()
            .getContentResolver()
            .notifyChange(builder.build(), null);
        input.setText("");
    } 
 
} 
Full Snippet Info
6
CodeRank
Stop searching for code, let great code find you!  Add Codota to your java IDE
This code example shows how to use the following methods: appendQueryParameter
        return contentValues;
    } 
 
    private static void appendQueryParameter(Builder builder, String field, String value) {
        if (!TextUtils.isEmpty(value)) {
            builder.appendQueryParameter(field, value);
        } 
    } 
} 
Full Snippet Info
5
CodeRank
Stop searching for code, let great code find you!  Add Codota to your java IDE

Related Android Uri.Builder Questions & Answers:

See Code Examples for Android Uri.Builder Methods: