Here you can find the source of encodeUrl(Bundle parameters)
public static String encodeUrl(Bundle parameters)
//package com.java2s; import java.io.UnsupportedEncodingException; import java.net.URLEncoder; import android.os.Bundle; public class Main { public static String encodeUrl(Bundle parameters) { if (parameters == null) { return ""; }// www .j ava 2s . c o m try { StringBuilder sb = new StringBuilder(); boolean first = true; for (String key : parameters.keySet()) { if (first) first = false; else sb.append("&"); sb.append(URLEncoder.encode(key, "UTF-8") + "=" + URLEncoder.encode(parameters.getString(key), "UTF-8")); } return sb.toString(); } catch (UnsupportedEncodingException e) { return ""; } } }