Here you can find the source of decodeUrl(String s)
public static Bundle decodeUrl(String s)
//package com.java2s; import java.io.UnsupportedEncodingException; import java.net.URLDecoder; import android.os.Bundle; public class Main { public static Bundle decodeUrl(String s) { Bundle params = new Bundle(); try {//from ww w. ja v a2 s . c o m if (s != null) { String array[] = s.split("&"); for (String parameter : array) { String v[] = parameter.split("="); params.putString(URLDecoder.decode(v[0], "UTF-8"), URLDecoder.decode(v[1], "UTF-8")); } } } catch (UnsupportedEncodingException e) { } return params; } }