📜  android studio 中的 Uri.builder - Java 代码示例

📅  最后修改于: 2022-03-11 14:52:13.704000             🧑  作者: Mango

代码示例1
private Uri buildURI(String url, Map params) {

    // build url with parameters.
    Uri.Builder builder = Uri.parse(url).buildUpon();
    for (Map.Entry entry : params.entrySet()) {
        builder.appendQueryParameter(entry.getKey(), entry.getValue());
    }

    return builder.build();
}