Hi!
I want to make a image gallery, I want to scan or have a way to get
pics from the external storage (sdcard) and have them pointed with a
Cursor object. I have read some examples that suggests to do this:
Uri uri = MediaStore.Images.Thumbnails.EXTERNAL_CONTENT_URI;
String[] projection = {
MediaStore.Images.Thumbnails._ID,
MediaStore.Images.Thumbnails.IMAGE_ID,
MediaStore.Images.Thumbnails.WIDTH,
MediaStore.Images.Thumbnails.HEIGHT,
MediaStore.Images.Thumbnails.KIND
};
Cursor cursor = managedQuery(uri, projection, null, null, null);
But it does not work yet, when this code is executed, cursor variable
is empty (no objects pointed).
How can I should do this?
Please give me ideas!.
Thank you!
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---