select Photo Intent - Android android.hardware

Android examples for android.hardware:Photo

Description

select Photo Intent

Demo Code

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 . j  av a  2  s  .c  o m

}

Related Tutorials