Hello Dear, I want to retrieve images from Android Media provider.
Here I want to limit the selection by TITLE, or LOCATION, or others. I
am trying in several ways. but getting problems.. you can see my....


Uri uri = MediaStore.Images.Media.EXTERNAL_CONTENT_URI;

        //displaySdCard();
//
//      String[] projection = {MediaStore.Images.ImageColumns._ID,
//                                                      
//MediaStore.Images.Media.TITLE,
//                                                      //"_display_name",
//                                                      
MediaStore.Images.Thumbnails.IMAGE_ID,
//                                                      
MediaStore.Images.Thumbnails.KIND,
//                                                      
MediaStore.Images.Media.DATA
//                                                      };
        String[] projection = {Media._ID,
                                                   Media.DISPLAY_NAME,
                                                   Media.TITLE,
                                                   
//MediaStore.Images.Thumbnails.IMAGE_ID
                                                        };


//      String[] projection = {Media._ID,
//                                                      
Images.Thumbnails.IMAGE_ID,
//
//                              };

        //String selection = MediaStore.MediaColumns.TITLE + "=ks";

        //String selection = MediaStore.Images.Thumbnails.KIND + " = " +
MediaStore.Images.Thumbnails.MINI_KIND;
        //String ks = "ks";
        //String selection = MediaStore.Images.Thumbnails.KIND + " = "
MediaStore.Images.Thumbnails.MINI_KIND + " AND " + Media.TITLE + " = "
+ ks ;
        //Log.i("me", selection);
        mCursor = this.managedQuery(uri, projection, null, null, null);



Any advice?

--~--~---------~--~----~------------~-------~--~----~
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