Q:

parse uri in android using substring or trim

I have this url and I want to parse the only content after = symbol
I have this code which works fine but substring and other thing, I tried is not working.
    Uri uri = Uri.parse(url);

    <a rel="nofollow" href="whatsapp://send?text=चोट इस कदर खाई है दिल ने की अब कोई लडकी Awwww भी करती है, तो लगता है ये थोड़ी देर में फद्&zwnj;दू बना देगी!" data-action="share/whatsapp/share" ><span class="whatsapp">&nbsp;</span></a>

I want all contents of href after whatsapp://send?text= so if I chose after = using substring it should work but its not working as it is giving error

A:

String result = uri.getQuery().split("=")[1]
getQuery() will return "text=blabla". 
split("=") splits up the string into an array of sub strings. 
Select the second half (index 1)

