get Photo Album Activity via Intent - Android Intent

Android examples for Intent:Picture Pickup

Description

get Photo Album Activity via Intent

Demo Code


//package com.java2s;

import android.content.Intent;

import android.provider.MediaStore;

public class Main {
    public static Intent getPhotoAlbumActivity() {
        Intent intent = new Intent(Intent.ACTION_PICK, null);
        intent.setDataAndType(MediaStore.Images.Media.EXTERNAL_CONTENT_URI,
                "image/*");
        intent.putExtra("return-data", true);
        return intent;

    }/*  w w  w.  j  a va  2s  .c  o  m*/
}

Related Tutorials