How to pass Uri value to bundle value
You can pass the Uri as a string using the toString
function, then parse it back as a Uri.
So, to send it as part of the URI:
phonebookIntent.putExtra("uri", uriData.toString());
To read it back:
Uri uriData = Uri.parse(extras.getString"uri"));
Uri implements Parcelable
so you can do it this way:
phonebookIntent.putExtra("uri", your_uri_object);
Read it back:
Uri uri = getIntent().getParcelableExtra("uri");