Preethi Preethi - 1 year ago 121
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.

Answer Source

Use Uri.getQueryParameter().


Uri uri = Uri.parse("");
String pathParam = uri.getQueryParameter("path");
Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download