B4A Code Snippet Add image to Gallery Android 5 - 10+ - Erel    
Oct 12, 2026   
(18 reactions)Depends on: Phone, JavaObject and ContentResolver libraries
Sub AddBitmapToGallery (In...))
Log(Args(1))
End If
End If
End Sub
Usage example:
AddBitmapToGallery...
link: Updates:
- Added optional relative path parameter. When set as in the above example (and note the tr...
link: Please start a new thread....
link: Erel,
I would like to save my bitmap to Gallery Folder by calling :
AddBitmapToGallery(File...
B4A Question Show image in Gallery (Android 7.0) - GGSoft    
Sep 27, 2018After searching in the forum, I tried this code:
' The image
Dim bitmap As Bitmap = LoadBitmap(File.DirAssets, "prueba.jpg")
' Copy to ...files/pruebas/prueba.jpg
Dim Out As OutputStream
Dim r As RuntimePermissions
Out = File.OpenOutput(r.GetSafeDirDefaultExternal("pruebas"), "prueba.jpg", False)
bitmap.WriteToStream(Out, 100, "JPEG")
Out.Close
' "Broadcast" image to gallery
Dim Phone As Phone
If Phone.SdkVersion < 19 Then...
B4A Code Snippet AddToGallery - add images and videos to the Gallery (SDK 20 to 30) - an update of Erel's AddBitmapToGallery - JackKirk    
Jun 5, 2021   
(8 reactions)In this code snippet:
https://www.b4x.com/android/forum/threads/add-image-to-gallery-android-5-10.121992/
Erel shows how to add an image to an Android gallery for all SDKs 20? to 30.
Only...
link:
I would really appreciate it if forum members with devices other than SDK 23 or 30 would test it ...
link: Works great on SDK28 Galaxy Tab Active2. It saved four of my applications. Wonderful...
link: .Downloads
and you should fix this code to add to gallery with android <=18
If Phone.SdkVersion <...
Share My Creation [B4X] B4X Pleroma - open source client for Mastodon / Pleroma social networks - Erel    
Nov 4, 2020   
(16 reactions)" camera, video and gallery:
102474
You can try it without an account, though many of the features...
B4A Library [Lib+Class] CustomGallery - Informatix    
Oct 23, 2014   
(5 reactions)CustomGallery is a very small library (BitmapPlus) and a class (ClsCustomGallery) for B4A v2.0.
Its goal is to display thumbnails in a row, column or grid. It's highly customizable as you can see..., Top As Int, Width As Int, Height As Int, GalleryStyle As Int, Callback As Object, subTouch As String, subClick As String, subLongClick As String, subScroll As String)
ClearGallery
RemoveColoredBorders... the file CustomGallery#1.zip. If you want to run the full demo, download the five files. After unzipping...
B4A Library [Library] B4aGallery v3.55 - lonleystar    
Feb 6, 2015   
(16 reactions)B4AGalleryView
Author: Giuseppe Salvi
Version: 3.55
A thanks is always appreciated....
B4A Question Get a image from gallery and crop it in SDK = 26 - asales    
Jun 20, 2018I use this code below to open the gallery, get a image and crop using the internal tool to crop.
I made a few change to uses the in the SDK = 26, like runtime permissions.
The old function to crop the image uses "GetPathFromContentResult" (that don't works in SDK = 26, works fine until SDK = 23) and @Erel says "it is a mistake to use this sub", in this post:
https://www...
I tried several changes in code of the cropPicture sub to work, after select the image in gallery...
B4A Library AS Gallery - show images from folders (image- and video-thumbnails) - Alexander Stolte    
Aug 13, 2020   
(16 reactions)I want to share my class to create a image preview list like in the gallery app.
This class is based on xCustomListView and PreoptimizedCLV.
The class is creating a cached thumbnail of a image if...
link:
how to change asgallery background color?
Try
ASGallery1.Base.Color = xui.Color_Red
'...
link: how to change asgallery background color?...
link:
how to change count the tile?
In the designer....
B4A Question Android image gallery - deleting images - peacemaker    
Jun 30, 2023Hi, All
I am creating a Gallery app, to sort out my tons of photos.
But it seems, deleting the garbage old photos ... is impossible, due to permissions without the root.
Is it correct ? So, impossible to clear the device from old photos ? Or any solution ?...
link: in the my gallery, but after first deletion - the second deletion works in 7-10 seconds only, not...
link:
So, impossible to clear the device from old photos ? Or any solution ?
Here is only a suggestion because I did not have a situation...
B4A Code Snippet MediaBrowser - get a random image from gallery - Alexander Stolte    
Aug 27, 2020   
(5 reactions)Dim MB As MediaBrowser
MB.Initialize("MB")
Dim tmp_m As Map = MB.GetMediaImageList(True, "datetaken DESC")
xiv.SetBitmap(LoadBitmapResize(tmp_m.Get("Location" & Rnd(0,tmp_m.Size/7)),"",xiv.Width,xiv.Height,True))...
Page: 1  
2  
3  
4  
5  
6  
7