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

App crashes on android Q #604

Open
tuanvn91 opened this issue Feb 21, 2020 · 3 comments
Open

App crashes on android Q #604

tuanvn91 opened this issue Feb 21, 2020 · 3 comments

Comments

@tuanvn91
Copy link

public static String[] getProjection() {
return new String[]{
MediaStore.Files.FileColumns.PARENT,
MediaStore.Images.Media.BUCKET_DISPLAY_NAME,
"count(*)",
MediaStore.Images.Media.DATA,
"max(" + MediaStore.Images.Media.DATE_MODIFIED + ")"
};
}

that code above no longer work on android Q, please fix it

@coderspacedev
Copy link

I'm facing same problem IlligalException invalidate column count(*)

@RB4915
Copy link

RB4915 commented Jun 11, 2020

public static String[] getProjection() {
return new String[]{
MediaStore.Files.FileColumns.PARENT,
MediaStore.Images.Media.BUCKET_DISPLAY_NAME,
"count(*)",
MediaStore.Images.Media.DATA,
"max(" + MediaStore.Images.Media.DATE_MODIFIED + ")"
};
}

that code above no longer work on android Q, please fix it

Same problem here, have you found solution for it? it only shows when target sdk 29 compileSdkVersion 29

@Mahendra-Gohil
Copy link

java.lang.IllegalArgumentException: Invalid column count(*)

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

4 participants