select Photo via Intent - Android Intent

Android examples for Intent:Picture Pickup

Description

select Photo via Intent

Demo Code


//package com.java2s;

import android.content.Intent;

import android.provider.MediaStore;

public class Main {

    public static Intent selectPhoto() {
        Intent intent = new Intent(Intent.ACTION_PICK, null);
        intent.setDataAndType(MediaStore.Images.Media.EXTERNAL_CONTENT_URI,
                "image/*");

        return intent;
    }//from   ww w . jav a  2  s. c o  m
}

Related Tutorials