Java tutorial
//package com.java2s; import android.content.Context; import android.content.Intent; import android.net.Uri; public class Main { public static final void viewImageFromUri(Context ctx, Uri u) { Intent intent = new Intent(); intent.setAction(Intent.ACTION_VIEW); intent.setDataAndType(u, "image/*"); ctx.startActivity(intent); } }