-
-
Notifications
You must be signed in to change notification settings - Fork 70
Support for API 29 (Android 10) #40
Comments
For now it is best to opt out of Scoped Storage feature. <manifest ... >
<!-- This attribute is "false" by default on apps targeting
Android 10 or higher. -->
<application android:requestLegacyExternalStorage="true" ... >
...
</application>
</manifest> Adding support for Scoped Storage may require breaking changes since
Support will be added in upcoming releases. Any contributions are welcome. |
It is a great fix, but then crashing here: Caused by android.database.sqlite.SQLiteException: near "GROUP": syntax error (code 1 SQLITE_ERROR): , while compiling: SELECT _data FROM files WHERE ((is_pending=0) AND (is_trashed=0) AND (volume_name IN ( 'external_primary' ))) AND ((bucket_id IS NOT NULL) GROUP BY (bucket_id)) ORDER BY _data ASC |
I am working on the fix, you can check it out here https://github.com/jaiselrahman/FilePicker/tree/feature/api29_support
|
Very much appreciated, it is a great library! I will test this! |
It is working now, such fantastic work, amazing! |
Android 10 support has been added in version 1.3.0. Change log is here. |
Not working on Android 10 :( |
use android:requestLegacyExternalStorage="true" in your project |
even after i add android:requestLegacyExternalStorage="true" |
android:requestLegacyExternalStorage="true" has been added and am using com.github.jaiselrahman:FilePicker:1.4.0-alpha01, but it still gives me the following exception on android 10: Unable to start activity ComponentInfo{/com.jaiselrahman.filepicker.activity.FilePickerActivity}: android.database.sqlite.SQLiteException: near "GROUP": syntax error (code 1 SQLITE_ERROR): , while compiling: SELECT _data FROM files WHERE ((owner_package_name IN ( 'com.ms.palladium' ) OR media_type=2 OR media_type=4 OR media_type=0 AND mime_type LIKE 'audio/%' OR media_type=3 OR media_type=0 AND mime_type LIKE 'video/%' OR media_type=1 OR media_type=0 AND mime_type LIKE 'image/%') AND (is_pending=0) AND (is_trashed=0) AND (volume_name IN ( 'external_primary' )) AND (invalid=0)) AND ((bucket_id IS NOT NULL) GROUP BY (bucket_id)) ORDER BY _data ASC |
How can we fix this issue? |
I'm getting an SQLiteException when starting FilePickerActivity on a device with API 29. On API 28 it works fine.
There is a similar issue for another library.
Device: Android Studio emulator with android 10.0
Lib ver.: 1.2.2
App uses the latest AndroidX libs. compileSdkVersion is 29
I'm starting activity like this:
Logcat:
The text was updated successfully, but these errors were encountered: