Picking image from gallery always returns resultCode -1
<p>Here is my code.</p>

<pre><code>Intent intent = new Intent(Intent.ACTION_GET_CONTENT); 
intent.setType("image/*");
intent.addCategory(Intent.CATEGORY_OPENABLE);
startActivityForResult(
        Intent.createChooser(
                intent,
                "Select Image"),
        SELECT_IMAGE_LOCAL);
</code></pre>

<p>For some reason it is always returning -1. Any ideas what I am doing wrong?</p>
