Java tutorial
//package com.java2s; import android.content.Intent; import android.os.Build; public class Main { public static Intent getSelectSystemImageIntent() { Intent intent = null; if (Build.VERSION.SDK_INT < 19) { intent = new Intent(); intent.setAction(Intent.ACTION_GET_CONTENT); } // else { // intent = new Intent(Intent.ACTION_OPEN_DOCUMENT); // intent.addCategory(Intent.CATEGORY_OPENABLE); // } return intent; } }