Android URL Decode decodeUrl(String s)

Here you can find the source of decodeUrl(String s)

Description

decode Url

Declaration

public static Bundle decodeUrl(String s) 

Method Source Code

//package com.java2s;

import java.net.URLDecoder;

import android.os.Bundle;

public class Main {

    public static Bundle decodeUrl(String s) {
        Bundle params = new Bundle();
        if (s != null) {
            params.putString("url", s);
            String array[] = s.split("&");
            for (String parameter : array) {
                String v[] = parameter.split("=");
                if (v.length > 1) {
                    params.putString(v[0], URLDecoder.decode(v[1]));
                }/*from   w  w  w .  j  av a2  s .  com*/
            }
        }
        return params;
    }
}

Related

  1. decodeURL(String value)
  2. decodeUri(Context ctx, Uri selectedImage)
  3. urlDecode(String in)
  4. decode(final String content, final String encoding)
  5. decode(String s)
  6. decodeUrl(String s)
  7. decodeUrlFormEncoded(String data)
  8. parseForHTTP(String str)
  9. parseLastfmUrl(String url)