Android URL Parameter Get paserParams(String url)

Here you can find the source of paserParams(String url)

Description

paser Params

Declaration

public static HashMap<String, String> paserParams(String url) 

Method Source Code

//package com.java2s;
import java.util.HashMap;

public class Main {

    public static HashMap<String, String> paserParams(String url) {
        String params = url.substring(url.indexOf("?") + 1);
        String[] arr = params.split("&");
        HashMap<String, String> maps = new HashMap<String, String>();
        for (String s : arr) {
            maps.put(s.substring(0, s.indexOf("=")),
                    s.substring(s.indexOf("=") + 1));
        }//  w w  w . j  a v a  2  s  .  c o  m
        return maps;
    }
}

Related

  1. getParamValue(String url, String param)
  2. getValueFromQueryString(String url, String key)
  3. parserURIQuery(String queryText)
  4. getQueryUrl(final String url)