-
Notifications
You must be signed in to change notification settings - Fork 37
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
Crash on Android 11 #23
Comments
please help me solve this |
You need to remove the LIMIT from ImageDataSource -> loadAlbumImages function |
How to limit users to select only one image from galary. |
How to limit users to select only one image from galary. |
Yes, I have tried many ways but I think there is a permission-related issue which must have to fix in the library. |
I fixed the issues for Android 11, please use this class:
} |
@Shay-BH Thanks its working now :) |
Hello, Can you guide me how to edit "ImagesDataSource" file. Its showing file is read only. |
@Shay-BH |
Hi @Shay-BH @sumeet3110. Can you please guide me what to place as newCursorUri. |
@HassanGlixenTech you need to place it in Const.kt |
|
@ateeqrehman33 Hi you have to make this library as a dependency to your project (Download it and add it your project) then you will able to edit ImageDataSource file.. |
@ateeqrehman33 I already have access to ImageDataSource. I just need to find out what can be the value placed at this position |
@HassanGlixenTech I have used the same as cursorUri and it is working for me . |
Still getting this error, has it been FIXED ? |
Kindly merge the pull request Yazan98 this user already fixed all the issues. My bad luck i am using it in my main application. For now i import it as a module and fixed it on my side but its a temporary fix that i did .. i am waiting for your update. Thanks |
Please tell me the solution to this problem. I could not solve the problem with what was said |
Thanks and It is working |
I could not add this project as a package to my project so I could edit it! |
Use
instead of
Based on pull request |
thank you |
try |
I have same problem
|
I tried this |
Regarding crash This doesnt occur to me nor it seems related to lib you can try For android X
Make sure android X is enabled with gradle.properties and Jetfier enabled
|
This would fix the crash for android 11, but you won't be able to switch albums. |
Use this function instead. You will be able to switch albums.
|
It runs, Thanks a much |
Describe the bug
Application crashes when gligar activity is launched (After allow permissions for the first time too).
To Reproduce
Steps to reproduce the behavior:
Expected behavior
Show the list of local image files.
Include stack trace if exist
E/ThemeUtils: View class androidx.appcompat.widget.AppCompatTextView is an AppCompat widget that can only be used with a Theme.AppCompat theme (or descendant).
E/ThemeUtils: View class androidx.appcompat.widget.AppCompatTextView is an AppCompat widget that can only be used with a Theme.AppCompat theme (or descendant).
E/AndroidRuntime: FATAL EXCEPTION: main
Process: avanceingenieros.com.app, PID: 6152
java.lang.IllegalArgumentException: Invalid token LIMIT
at android.database.DatabaseUtils.readExceptionFromParcel(DatabaseUtils.java:172)
at android.database.DatabaseUtils.readExceptionFromParcel(DatabaseUtils.java:142)
at android.content.ContentProviderProxy.query(ContentProviderNative.java:472)
at android.content.ContentResolver.query(ContentResolver.java:1183)
at android.content.ContentResolver.query(ContentResolver.java:1115)
at android.content.ContentResolver.query(ContentResolver.java:1071)
at com.opensooq.supernova.gligar.dataSource.ImagesDataSource.loadAlbumImages(ImagesDataSource.kt:64)
at com.opensooq.supernova.gligar.ui.PickerViewModel$getImages$2.invokeSuspend(PickerViewModel.kt:99)
at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:33)
at kotlinx.coroutines.DispatchedTask.run(DispatchedTask.kt:56)
at kotlinx.coroutines.scheduling.CoroutineScheduler.runSafely(CoroutineScheduler.kt:571)
at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.executeTask(CoroutineScheduler.kt:738)
at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.runWorker(CoroutineScheduler.kt:678)
at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.run(CoroutineScheduler.kt:665)
Smartphone (please complete the following information):
The text was updated successfully, but these errors were encountered: