Here you can find the source of encodeUrl(Bundle parameters)
public static String encodeUrl(Bundle parameters)
//package com.java2s; import java.net.URLEncoder; import android.os.Bundle; public class Main { public static String encodeUrl(Bundle parameters) { if (parameters == null) { return ""; }//from www . ja v a2 s.c om StringBuilder sb = new StringBuilder(); boolean first = true; for (String key : parameters.keySet()) { if (first) { first = false; } else { sb.append("&"); } sb.append(key + "=" + URLEncoder.encode(parameters.getString(key))); //sb.append(key + "=" + parameters.getString(key)); } return sb.toString(); } }