Use Uri.parse().getPath(). This will also unescape % escapes.