Android URL Parameter Get queryComponent(String url)

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

Description

Grabs query component only from url.

Declaration

public static String queryComponent(String url) 

Method Source Code

//package com.java2s;

public class Main {
    /** Grabs query component only from url. If no query component, returns null.*/
    public static String queryComponent(String url) {
        int queryStart = url.indexOf("?");

        if (queryStart == -1)
            return null;

        return url.substring(queryStart + 1);
    }/* w  w  w.j a  v  a2s  .c  o  m*/
}

Related

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