How do I get a cursor to the last video that has been recorded? The purpose is to get a thumbnail. The following code works fine but sometimes it doesn’t get the most recent video:
Uri uri = Uri.parse("content://media/external/video/media");
Cursor c = cr.query(uri, proj, null, null, null);
c.moveToLast();
You can use the
DATE_TAKENcolumn in your query which will be maximum for the last video. Anyway, as @zapl mentioned in comments, this will not necessarily be a recorded video. Hope this helps.