We can view an image with code:
Intent intent = new Intent();
intent.setAction(android.content.Intent.ACTION_VIEW);
File file = new File("/sdcard/test.jpg");
intent.setDataAndType(Uri.fromFile(file), "image/*");
startActivity(intent);
What if we have some images? How can we put the extras to let the viewer know we have
/sdcard/a.jpg, /sdcard/b.jpg, /sdcard/c.jpg ?
I hope to do this in a time because starting an activity is very expensive.
can any one help me? Thanks!