What I'm trying to do in my application is to let the user choose a picture from his phone's gallery. The code I'm using is as follows:
Intent intentBrowseFiles = new Intent();
intentBrowseFiles.setType("image/*");
intentBrowseFiles.setAction(Intent.ACTION_GET_CONTENT);
intentBrowseFiles.putExtra(Intent.EXTRA_LOCAL_ONLY, true);
startActivityForResult(Intent.createChooser(intentBrowseFiles,"Select Picture"), SHOW_GALLERY);
By putting :
intentBrowseFiles.putExtra(Intent.EXTRA_LOCAL_ONLY, true);
I thought this would only fire the gallery intent, but instead user is left with the selection of his drive, dropbox and other online accounts along with the local gallery...
I don't want any other remote resources, is there something that I'm missing here?