我建立一個機器人庫,我想通過文件名如何排序,按降序排列的文件名與manageQuery
降序排列來顯示圖像,但我不確定要放什麼東西在最後一個字段我的managedQuery:
String[] projection = {MediaStore.Images.Media._ID};
// Create the cursor pointing to the SDCard
cursor = managedQuery(MediaStore.Images.Media.EXTERNAL_CONTENT_URI,
projection, // Which columns to return
MediaStore.Images.Media.DATA + " like ? ",
new String[] {"%LC/images%"},
MediaStore.Images.Media._ID + "dsc");// order here ?? help
請檢查這個問題:http://stackoverflow.com/questions/22705332/show-latest-on-top-in-a-list – Sun 2014-03-29 08:36:18