Android image picker for local files only Android image picker for local files only android android

Android image picker for local files only


Adding intent.putExtra(Intent.EXTRA_LOCAL_ONLY, true); will allow for local files only. It will exclude picasa images. Hope this helps.

    Intent intent = new Intent();    intent.setType("image/*");    intent.setAction(Intent.ACTION_GET_CONTENT);    intent.putExtra(Intent.EXTRA_LOCAL_ONLY, true);    startActivityForResult(Intent.createChooser(intent,            "Complete action using"), PHOTO_PICKER_ID);


User this code to launch intent to get local image chooser.

Intent intent = new Intent();intent.setType("image/*");intent.setAction(Intent.ACTION_GET_CONTENT);startActivityForResult(Intent.createChooser(intent,                "Complete action using"), PHOTO_PICKER_ID);