Java tutorial
//package com.java2s; import android.net.Uri; import java.util.HashMap; import java.util.Map; public class Main { public static Map<String, String> getQueryMap(String url) { String query = Uri.parse(url).getQuery(); String[] params = query.split("&"); Map<String, String> map = new HashMap<>(); for (String param : params) { String name = param.split("=")[0]; String value = param.split("=")[1]; map.put(name, value); } return map; } }