B4A Library FilePicker with PickVisualMedia in Android 13!

After 2 days research about ActivityResultContracts and PickVisualMedia in Android 13, i wrote this inline Java for my use and share it for all member B4A too, hope you will like and use this my code in many apps!

This inline java code allows you to choose photo/video or documents file support from Android 4.4 to 13 without any permissions. Especially support new photo picker interface on Android 13.

(https://developer.android.com/training/data-storage/shared/photopicker)


You can watch the video to compare the look on different Android versions.
In older Android (<13):

In new Android (>=13):


A special feature is backward compatibility with older Android OS, support to select one or more files at the same time, this also help you can get filename from this selector and can copy it to your app to use.
 

Attachments

  • filePicker-SupportAndroid13.zip
    12.1 KB · Views: 302
Cookies are required to use this site. You must accept them to continue using the site. Learn more…