Java tutorial
//package com.java2s; //License from project: Apache License import android.os.Bundle; public class Main { /** * Returns GET url with appended parameters. * * @param url * @param params * @return */ public static String toGetUrl(String url, Bundle params) { if (params != null) { if (!url.endsWith("?")) { url = url + "?"; } for (String key : params.keySet()) { url = url + key + "=" + params.getString(key) + "&"; } } return url; } }