Java tutorial
//package com.java2s; import android.app.Activity; import android.content.Intent; public class Main { private static final int CHOOSE_PICTURE = 1; public static void choosePicture(Activity activity) { Intent openAlbumIntent = new Intent(Intent.ACTION_GET_CONTENT); openAlbumIntent.setType("image/*"); activity.startActivityForResult(openAlbumIntent, CHOOSE_PICTURE); } }