-1

I'm getting a path in string into second activity from frist Activity after completing the onActivity results. And I'm getting them like this

content://com.miui.gallery.open/raw/%2Fstorage%2Femulated%2F0%2FDCIM%2FScreenshots%2Ffilename.jpg

But i want this

content://com.miui.gallery.open/raw/storage/emulated/0/DCIM/Screenshot/filename.jpg

how i can get this please help.

Matrix
  • 9
  • 5

1 Answers1

0

I got my answer

public String decodeString(String pathstring)
{
    String decodedString="";
    try {
        decodedString = URLDecoder.decode(pathstring,"UTF-8");
    } catch (UnsupportedEncodingException e) {
    }
    return decodedString;
}
Guru Stron
  • 102,774
  • 10
  • 95
  • 132
Matrix
  • 9
  • 5