Java tutorial
//package com.java2s; //License from project: Open Source License import android.net.Uri; public class Main { public static String extractFragmentParam(Uri url, String name) { return new Uri.Builder().encodedQuery(url.getEncodedFragment()).build().getQueryParameter(name); } }