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
Connect your IDE to all the code out there  Get Codota for Java
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
Connect your IDE to all the code out there  Get Codota for Java
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
Connect your IDE to all the code out there  Get Codota for Java
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
Connect your IDE to all the code out there  Get Codota for Java
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
Connect your IDE to all the code out there  Get Codota for Java
This code example shows how to use the following methods: build, scheme
    */ 
 
 
    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) {
Full Snippet Info
5
CodeRank
Connect your IDE to all the code out there  Get Codota for Java
This code example shows how to use the following methods: appendQueryParameter, path
						return true; 
					} 
				} catch (Exception e) {
					return false; 
				} 
 
			} 
		} finally { 
			if (entity != null) {
				entity.consumeContent();
			} 
		} 
		return false; 
	} 
 
	private Builder buildRegisterQuery() {
		final Builder uri = LoginBusiness.buildGetMethod();
		uri.appendQueryParameter(PARAM_MD5, VALUE_MD5);
		uri.appendQueryParameter(PARAM_TABLE_NAME, VALUE_TABLE_NAME);
		return uri;

5
CodeRank
Connect your IDE to all the code out there  Get Codota for Java
This code example shows how to use the following methods: appendPath, authority, build, scheme
Connect your IDE to all the code out there  Get Codota for Java
This code example shows how to use the following methods: appendPath, build
  } 
 
  public static Uri a(Uri paramUri, long paramLong)
  { 
    Uri.Builder localBuilder = paramUri.buildUpon();
    localBuilder.appendPath("notifications");
    localBuilder.appendPath(String.valueOf(paramLong));
    return localBuilder.build();
  } 
} 
 
/* Location:           C:\Users\sandrocheng.21KUNPENG\Desktop\classes_dex2jar.jar 
 * Qualified Name:     com.avast.android.generic.e 
 * JD-Core Version:    0.6.2 
 */ 
Full Snippet Info
6
CodeRank
Connect your IDE to all the code out there  Get Codota for Java
This code example shows how to use the following methods: appendQueryParameter, path
		return false; 
	} 
 
	private Builder buildLoginQuery() {
		final Builder uri = buildGetMethod();
		uri.appendQueryParameter(PARAM_MD5, VALUE_MD5);
		uri.appendQueryParameter(PARAM_TABLE_NAME, VALUE_TABLE_NAME);
		return uri;
	} 
 
	public static Uri.Builder buildGetMethod() {
		final Builder builder = new Builder();
		builder.path(API_REST_URL);
		return builder;
	} 
 
	private boolean executeRequest(HttpHost host, HttpPost post)
			throws IOException, ParseException, JSONException { 
		HttpEntity entity = null;
		try { 
Full Snippet Info
5
CodeRank
Connect your IDE to all the code out there  Get Codota for Java

Related Android Uri.Builder Questions & Answers:

See Code Examples for Android Uri.Builder Methods: