I need to pass an array of Uri to another activity, to pass an array of String I use simply
String[] images=getImagesPathString();
Bundle b = new Bundle
From what I know plain arrays cannot be put into Bundles. But you can put Uri-s into ArrayList and then call Bundle.putParcelableArrayList().
example:
ArrayList uris = new ArrayList();
// fill uris
bundle.putParcelableArrayList(KEY_URIS, uris);
later on:
ArrayList uris =
bundle.getParcelableArrayList(KEY_URIS);
for (Parcelable p : uris) {
Uri uri = (Uri) p;
}