uri to string android code example
Example 1: android string to uri
Uri myUri = Uri.parse("http://stackoverflow.com")
Example 2: android uri to string
Uri uri;
String stringUri;
stringUri = uri.toString();
Example 3: string to JSONobject android
String json = {"phonetype":"N95","cat":"WP"};
try {
JSONObject obj = new JSONObject(json);
Log.d("My App", obj.toString());
} catch (Throwable t) {
Log.e("My App", "Could not parse malformed JSON: \"" + json + "\"");
}