Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

android.database.sqlite.SQLiteException: near "GROUP": syntax error in Android 10 #5

Open
Dnyaneshwar1926 opened this issue Sep 22, 2020 · 0 comments

Comments

@Dnyaneshwar1926
Copy link

Dnyaneshwar1926 commented Sep 22, 2020

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");

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant