Best code examples for Android Uri.Builder class (android.net.Uri.Builder)

These code examples were ranked by Codota’s semantic indexing as the best open source examples for Android Uri.Builder class.
You can now enable Codota on your own code to easily search and navigate your Java codebase.

Android Uri.Builder examples from Open Source projects
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
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
This code example shows how to use the following methods: appendPath, authority, build, scheme
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
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
Related Android Uri.Builder Questions & Answers:
See Code Examples for Android Uri.Builder Methods: