android-multiple-images-selector | use library to select images | Computer Vision library
kandi X-RAY | android-multiple-images-selector Summary
kandi X-RAY | android-multiple-images-selector Summary
Easy-to-use library to select images in Android application. NOTE: this library depends on Fresco / rxjava.
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
- Initializes the activity
- Loads all the images and images
- Updates the button of done button
- Initialize popup window
- Invoked when the viewHolder is loaded
- Checks if the image is selected
- Toggles the selected image
- Shows a thumbnail
- Binds the item to a holder
- Sets the currently selected folder
- Generate view holder
- Gets the offsets of the items in the RecyclerView
- Region Override
- Invoked when the view is created
- Forward to EasyPermissions result
- Returns the count of items in this map
- Called when a folder item is clicked
- Compares this image to another
- On create
- Called when the button is clicked
- Get individual cache directory
- Handle an image item interaction
- Override to show the results in textview
- Callback method for capturing image
- Initialize the selector
- Returns a string representation of the item
android-multiple-images-selector Key Features
android-multiple-images-selector Examples and Code Snippets
Community Discussions
Trending Discussions on android-multiple-images-selector
QUESTION
I have used this library in my app the library itself uses RxJava and it works perfectly in Debug APK. It works even on Release when Proguard obfuscation is disabled. But it stops working when I enable Proguard once I select an Image!
Here is the log:
08-02 22:54:11.848: E/AndroidRuntime(17818): FATAL EXCEPTION: main 08-02 22:54:11.848: E/AndroidRuntime(17818): Process: com.domus.safariar.domus, PID: 17818 08-02 22:54:11.848: E/AndroidRuntime(17818): java.lang.InternalError 08-02 22:54:11.848: E/AndroidRuntime(17818): at rx.internal.util.unsafe.UnsafeAccess.addressOf(Unknown Source:14) 08-02 22:54:11.848: E/AndroidRuntime(17818): at rx.internal.util.unsafe.SpscArrayQueueProducerFields.(Unknown Source:4) 08-02 22:54:11.848: E/AndroidRuntime(17818): at rx.internal.operators.OperatorObserveOn$ObserveOnSubscriber.(Unknown Source:50) 08-02 22:54:11.848: E/AndroidRuntime(17818): at rx.internal.operators.OperatorObserveOn.call(Unknown Source:22) 08-02 22:54:11.848: E/AndroidRuntime(17818): at rx.internal.operators.OperatorObserveOn.call(Unknown Source:2) 08-02 22:54:11.848: E/AndroidRuntime(17818): at rx.Observable$2.call(Unknown Source:8) 08-02 22:54:11.848: E/AndroidRuntime(17818): at rx.Observable$2.call(Unknown Source:2) 08-02 22:54:11.848: E/AndroidRuntime(17818): at rx.Observable.subscribe(Unknown Source:43) 08-02 22:54:11.848: E/AndroidRuntime(17818): at rx.Observable.subscribe(Unknown Source:0) 08-02 22:54:11.848: E/AndroidRuntime(17818): at com.zfdang.multiple_images_selector.ImagesSelectorActivity.LoadFolderAndImages(Unknown Source:36) 08-02 22:54:11.848: E/AndroidRuntime(17818): at com.zfdang.multiple_images_selector.ImagesSelectorActivity.onRequestPermissionsResult(Unknown Source:48) 08-02 22:54:11.848: E/AndroidRuntime(17818): at android.app.Activity.dispatchRequestPermissionsResult(Activity.java:7429) 08-02 22:54:11.848: E/AndroidRuntime(17818): at android.app.Activity.dispatchActivityResult(Activity.java:7280) 08-02 22:54:11.848: E/AndroidRuntime(17818): at android.app.ActivityThread.deliverResults(ActivityThread.java:4264) 08-02 22:54:11.848: E/AndroidRuntime(17818): at android.app.ActivityThread.handleSendResult(ActivityThread.java:4312) 08-02 22:54:11.848: E/AndroidRuntime(17818): at android.app.ActivityThread.-wrap19(Unknown Source:0) 08-02 22:54:11.848: E/AndroidRuntime(17818): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1644) 08-02 22:54:11.848: E/AndroidRuntime(17818): at android.os.Handler.dispatchMessage(Handler.java:106) 08-02 22:54:11.848: E/AndroidRuntime(17818): at android.os.Looper.loop(Looper.java:164) 08-02 22:54:11.848: E/AndroidRuntime(17818): at android.app.ActivityThread.main(ActivityThread.java:6494) 08-02 22:54:11.848: E/AndroidRuntime(17818): at java.lang.reflect.Method.invoke(Native Method) 08-02 22:54:11.848: E/AndroidRuntime(17818): at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:438) 08-02 22:54:11.848: E/AndroidRuntime(17818): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:807) 08-02 22:54:11.848: E/AndroidRuntime(17818): Caused by: java.lang.NoSuchFieldException: No field producerIndex in class Lrx/internal/util/unsafe/SpscArrayQueueProducerFields; (declaration of 'rx.internal.util.unsafe.SpscArrayQueueProducerFields' appears in /data/app/com.domus.safariar.domus-P04AN9pLul9iY1dryJ3vXg==/base.apk!classes3.dex) 08-02 22:54:11.848: E/AndroidRuntime(17818): at java.lang.Class.getDeclaredField(Native Method) 08-02 22:54:11.848: E/AndroidRuntime(17818): at rx.internal.util.unsafe.UnsafeAccess.addressOf(Unknown Source:0) 08-02 22:54:11.848: E/AndroidRuntime(17818): ... 22 more 08-02 22:54:11.849: E/UncaughtException(17818): java.lang.InternalError 08-02 22:54:11.849: E/UncaughtException(17818): at rx.internal.util.unsafe.UnsafeAccess.addressOf(Unknown Source:14) 08-02 22:54:11.849: E/UncaughtException(17818): at rx.internal.util.unsafe.SpscArrayQueueProducerFields.(Unknown Source:4) 08-02 22:54:11.849: E/UncaughtException(17818): at rx.internal.operators.OperatorObserveOn$ObserveOnSubscriber.(Unknown Source:50) 08-02 22:54:11.849: E/UncaughtException(17818): at rx.internal.operators.OperatorObserveOn.call(Unknown Source:22) 08-02 22:54:11.849: E/UncaughtException(17818): at rx.internal.operators.OperatorObserveOn.call(Unknown Source:2) 08-02 22:54:11.849: E/UncaughtException(17818): at rx.Observable$2.call(Unknown Source:8) 08-02 22:54:11.849: E/UncaughtException(17818): at rx.Observable$2.call(Unknown Source:2) 08-02 22:54:11.849: E/UncaughtException(17818): at rx.Observable.subscribe(Unknown Source:43) 08-02 22:54:11.849: E/UncaughtException(17818): at rx.Observable.subscribe(Unknown Source:0) 08-02 22:54:11.849: E/UncaughtException(17818): at com.zfdang.multiple_images_selector.ImagesSelectorActivity.LoadFolderAndImages(Unknown Source:36) 08-02 22:54:11.849: E/UncaughtException(17818): at com.zfdang.multiple_images_selector.ImagesSelectorActivity.onRequestPermissionsResult(Unknown Source:48) 08-02 22:54:11.849: E/UncaughtException(17818): at android.app.Activity.dispatchRequestPermissionsResult(Activity.java:7429) 08-02 22:54:11.849: E/UncaughtException(17818): at android.app.Activity.dispatchActivityResult(Activity.java:7280) 08-02 22:54:11.849: E/UncaughtException(17818): at android.app.ActivityThread.deliverResults(ActivityThread.java:4264) 08-02 22:54:11.849: E/UncaughtException(17818): at android.app.ActivityThread.handleSendResult(ActivityThread.java:4312) 08-02 22:54:11.849: E/UncaughtException(17818): at android.app.ActivityThread.-wrap19(Unknown Source:0) 08-02 22:54:11.849: E/UncaughtException(17818): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1644) 08-02 22:54:11.849: E/UncaughtException(17818): at android.os.Handler.dispatchMessage(Handler.java:106) 08-02 22:54:11.849: E/UncaughtException(17818): at android.os.Looper.loop(Looper.java:164) 08-02 22:54:11.849: E/UncaughtException(17818): at android.app.ActivityThread.main(ActivityThread.java:6494) 08-02 22:54:11.849: E/UncaughtException(17818): at java.lang.reflect.Method.invoke(Native Method) 08-02 22:54:11.849: E/UncaughtException(17818): at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:438) 08-02 22:54:11.849: E/UncaughtException(17818): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:807) 08-02 22:54:11.849: E/UncaughtException(17818): Caused by: java.lang.NoSuchFieldException: No field producerIndex in class Lrx/internal/util/unsafe/SpscArrayQueueProducerFields; (declaration of 'rx.internal.util.unsafe.SpscArrayQueueProducerFields' appears in /data/app/com.domus.safariar.domus-P04AN9pLul9iY1dryJ3vXg==/base.apk!classes3.dex) 08-02 22:54:11.849: E/UncaughtException(17818): at java.lang.Class.getDeclaredField(Native Method) 08-02 22:54:11.849: E/UncaughtException(17818): at rx.internal.util.unsafe.UnsafeAccess.addressOf(Unknown Source:0) 08-02 22:54:11.849: E/UncaughtException(17818): ... 22 more
I have tried to add some Proguard rules to avoid crashing but it does not work:
...ANSWER
Answered 2018-Aug-02 at 19:55-dontwarn sun.misc.**
-keepclassmembers class rx.internal.util.unsafe.*ArrayQueue*Field* {
long producerIndex;
long consumerIndex;
}
-keepclassmembers class rx.internal.util.unsafe.BaseLinkedQueueProducerNodeRef { rx.internal.util.atomic.LinkedQueueNode producerNode;
}
-keepclassmembers class rx.internal.util.unsafe.BaseLinkedQueueConsumerNodeRef { rx.internal.util.atomic.LinkedQueueNode consumerNode;
}
-dontnote rx.internal.util.PlatformDependent
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install android-multiple-images-selector
You can use android-multiple-images-selector like any standard Java library. Please include the the jar files in your classpath. You can also use any IDE and you can run and debug the android-multiple-images-selector component as you would do with any other Java program. Best practice is to use a build tool that supports dependency management such as Maven or Gradle. For Maven installation, please refer maven.apache.org. For Gradle installation, please refer gradle.org .
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page