Delete image from android gallery captured after particular date/time -


i working on project need take multiple images camera. looking way can delete images gallery taken after particular date/time.

please advice

have tried query mediastore.images...something this:

string[] projection = { mediastore.images.media.data }; string selection = mediastore.images.media.date_taken + " < ?"; string[] selectionargs = { string.valueof(your_date_millis) }; cursor cursor = context.getcontentresolver()     .query(images.media.external_content_uri,          projection,          selection,          selectionargs,          null);  if (cursor != null && cursor.getcount() > 0) {     while (cursor.movetonext() {         string imagepath = cursor.getstring(0);     } }  cursor.close(); 

Comments

Popular posts from this blog

Android layout hidden on keyboard show -

google app engine - 403 Forbidden POST - Flask WTForms -

c - Why would PK11_GenerateRandom() return an error -8023? -