Android examples for android.hardware:Photo
select Photo Intent
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 }