Preethi Preethi - 6 months ago 24
Java Question

get specific data from URL in android/java?

I have a url like this

I need to get the path of file as /mnt/sdcard/video from the URL . How do i do that ?
I used URL decoder to remove the spaces but i am confused on getting the path of the file .
Thanks for all your help.


Use Uri.getQueryParameter().


Uri uri = Uri.parse("");
String pathParam = uri.getQueryParameter("path");