You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm facing a loading gallery image in android 10. The same code is working fine for the below versions. Pls check.
Exception:
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' ))) AND ((1) GROUP BY 1,(2))
ORDER BY date_modified DESC
code written :
Cursor cur = contentResolver.query(Media.EXTERNAL_CONTENT_URI, new String[]{"_id", "bucket_display_name", "bucket_id", "_id", "orientation"}, "1) GROUP BY 1,(2", null, "date_modified DESC");
The text was updated successfully, but these errors were encountered:
Hey,
I'm facing a loading gallery image in android 10. The same code is working fine for the below versions. Pls check.
Exception:
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' ))) AND ((1) GROUP BY 1,(2))
ORDER BY date_modified DESC
code written :
Cursor cur = contentResolver.query(Media.EXTERNAL_CONTENT_URI, new String[]{"_id", "bucket_display_name", "bucket_id", "_id", "orientation"}, "1) GROUP BY 1,(2", null, "date_modified DESC");
The text was updated successfully, but these errors were encountered: