B4A Library MultiPhotoPicker

This is a wrap for this Github-project.

MultiPhotoPicker
Version:
1
  • MultiPhotoPicker
    Events:
    • onPhotoPicked (photos As List)
    Methods:
    • initialize (EventName As String)
    • startPickerActivity (maxImage As Int, minImage As Int)
Screen1.png
 

Attachments

  • MultiPhotoPickerEx.zip
    8.1 KB · Views: 656
  • MultiPhotoPickerV1.0.zip
    137.1 KB · Views: 690
  • glide-3.8.0.jar.zip
    411.9 KB · Views: 664

red30

Well-Known Member
Licensed User
Longtime User
Is it possible to change the language in this library?
Can I get Dir and FileName array of chosen photos in this library?
Why chosen photos are so small? There is much empty space below.
 

Attachments

  • IMG_20180724_185948.jpg
    IMG_20180724_185948.jpg
    131.3 KB · Views: 469
Last edited:

Xicu

Active Member
Licensed User
Longtime User
I know it's an old thread, but I used this good library for my project,
I want to share the answer to ..

Is it possible to change the language in this library?
By code I think that is not possible, but indirectly it's possible (I don't know if it's a good practice),
To do this,
1-Select the file multiphotopicker.aar from the library, and change the extension to zip.
2-Open the zip, and look for the file values.xml that is in the folder res -> values ->
3-Modify the red values you want to translate from values.xml.
<?xml version="1.0" encoding="utf-8"?>
<resources>
<array name="array_sort_value">
<item>Name</item>
<item>Size</item>
<item>Date</item>
</array>
<color name="colorAccent">#FF4081</color>
<color name="colorPrimary">#3F51B5</color>
<color name="colorPrimaryDark">#303F9F</color>
<string name="action_sort">Sort</string>
<string name="app_name">Multi Photo Picker</string>
<string name="pick_image_from_gallery">PICK IMAGE FROM GALLERY</string>
<string name="text_button_done">Done</string>
<string name="text_images">%1$d Images</string>
<string name="text_title_activity_album">Select photos</string>
<string name="text_title_dialog_sort_by_album">Sort album by</string>
<string name="text_title_dialog_sort_by_photo">Sort photo by</string>
<style name="AppTheme" parent="Theme.AppCompat.Light.DarkActionBar">
<!-- Customize your theme here. -->
<item name="colorPrimary">@color/colorPrimary</item>
<item name="colorPrimaryDark">@color/colorPrimaryDark</item>
<item name="colorAccent">@color/colorAccent</item>
</style>
</resources>


4-Save the modified file.
5-Change the zip extension to aar again.

Run the project again
 

ykucuk

Well-Known Member
Licensed User
Longtime User
Hello.
Example project is working but my project doesn't work when i click any of photos.

B4X:
java.lang.RuntimeException: An error occurred while executing doInBackground()
 

Attachments

  • Screen Shot 2021-02-18 at 03.12.38.png
    Screen Shot 2021-02-18 at 03.12.38.png
    39.1 KB · Views: 311

AndrewKing

Member
Licensed User
Longtime User
Same error (java.lang.RuntimeException: An error occurred while executing doInBackground()) if your set targetSdkVersion="30"
 
Top