Android How can I call Camera or Gallery Intent Together
<p>If I want to capture image from native camera, I can do:</p>

<pre><code>Intent intent = new Intent(MediaStore.ACTION_IMAGE_CAPTURE);
        intent.putExtra(MediaStore.EXTRA_OUTPUT, imageUri);
        intent.putExtra(MediaStore.EXTRA_VIDEO_QUALITY, 1);
        startActivityForResult(intent, IMAGE_CAPTURE);
</code></pre>

<p>If I want to get image from gallery, I can do:</p>

<pre><code>Intent intent = new Intent();
                intent.setType("image/*");
                intent.setAction(Intent.ACTION_GET_CONTENT);
                startActivityForResult(Intent.createChooser(intent,
                        "Select Picture"), SELECT_PICTURE);
</code></pre>

<p>I am wondering how can put the above two together.<br>
That means GET IMAGE FROM GALLERY OR CAPTURE PHOTO
<img src="http://i.imgur.com/cEth5.png" alt="Select an action"></p>

<p>Is there any example code to do it?
Thanks.</p>
