views:

20

answers:

0

All,

I want to ensure that a certain directory on the SD Card is not searched when my client app launches an intent to choose a picture from the library.

I start the Intent like so:

private static final int TAKE_PICTURE_FROM_LIBRARY = 2;
private static final Intent takePictureFromLibraryIntent = new Intent(Intent.ACTION_PICK, android.provider.MediaStore.Images.Media.INTERNAL_CONTENT_URI);
...
startActivityForResult(takePictureFromLibraryIntent, TAKE_PICTURE_FROM_LIBRARY);

The problem is that the SD Card contains a directory full of cached images that I do not want to show up in the thumbnail viewer that launches with this activity; there are thousands of images in this directory and it completely bogs down the activity.

Is there an extra I can put in the intent bundle to prevent this directory from being searched?