Эта ошибка возникает только в Android 10, нормально работает в других версиях.Если кто-нибудь знает, пожалуйста, сообщите мне решение
private boolean logGalleryFolders() {
this.albumList = new ArrayList();
List<Integer> bucketIdList = new ArrayList();
Cursor cur = this.context.getContentResolver().query(Media.EXTERNAL_CONTENT_URI, new String[]
{"_id", "bucket_display_name", "bucket_id", "_id", "orientation"}, "1) GROUP BY 1,(2", null, "date_modified DESC");
List<GridViewItem> items;
int i;
if (cur == null || !cur.moveToFirst()) {
items = new ArrayList();
for (i = 0; i < this.albumList.size(); i++) {
items.add(new GridViewItem(this.activity, ((Album) this.albumList.get(i)).name, BuildConfig.FLAVOR + ((Album) this.albumList.get(i)).imageIdList.size(), true, ((Album) this.albumList.get(i)).imageIdForThumb, ((Integer) ((Album) this.albumList.get(i)).orientationList.get(0)).intValue()));
}
Вот ошибка:
android.database.sqlite.SQLiteException: near "GROUP": syntax error (code 1 SQLITE_ERROR): , while compiling: SELECT _id, bucket_display_name, bucket_id, _id, orientation FROM images WHERE ((is_pending=0) AND (is_trashed=0) AND (volume_name IN ( 'external_primary' , '12ff-190e' ))) AND ((1) GROUP BY 1,(2)) ORDER BY date_modified DESC