Hi
I wanted to read images only from the Camera folder of the device.
Since the folder might be different for different devices, how can I
write a simple application for it).
So far I have written the following code, which does read from Camera
folder, but it also reads from other places on sdcard as well.

Cursor childCursor =
managedQuery(MediaStore.Images.Media.EXTERNAL_CONTENT_URI,
MediaStore.Images.ImageColumns._ID, null);

do
{
        ImageView image = new ImageView();
        
image.setImageURI(Uri.withAppendedPath(MediaStore.Images.Thumbnails.EXTERNAL_CONTENT_URI,
""+
        
childCursor.getString( childCursor.getColumnIndex( 
MediaStore.Images.ImageColumns._ID )));

        <some other code>
} while (childCursor.moveToNext());



How can I create a generic app and filter on Camera Images before
displaying. Any help is appreciated.

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to