First of all I have two activity one is mainActivity and the second is FullscreenImage Activity. The main thing is that what I want, to pass all the arraylist images to imageUri and how can I do that.
As example: File file = new File(Environment.getExternalStorageDirectory() + File.separator+"/......jpg");
Uri imageUri = Uri.fromFile(file);
List<photo> mList = new ArrayList<>();
mList.add(new photo(R.drawable.a));
mList.add(new photo(R.drawable.b));
mList.add(new photo(R.drawable.c));
mList.add(new photo(R.drawable.d));
mList.add(new photo(R.drawable.e));