I my application I should parse URl and I should get id number from Id
http://example.com/cat/detail/proc?id=147&_prof=W6IYDQZ2F2YOVBC78RUA
How can I parse this url and get id and prof ?
Use getQueryParameter()
Uri uri=Uri.parse("http://example.com/cat/detail/proc?id=147&_prof=W6IYDQZ2F2YOVBC78RUA");
String id = uri.getQueryParameter("id");
String _prof = uri.getQueryParameter("_prof");
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With