I tried reading pictures from local files in SMM example 2 thus:
I only get three images from folder being repeated as displayed below instead of displaying eight/nine different pictures available in the folder
as shown in the images below:
The sample code is attached below via Google Drive due to a bit Upload Limit:
SMM Example2
B4X:
filenm2b = (List1.Get(x)) 'i should always take note in b4xtable or album.can be used for tag to identify each cell
filenm2b = filenm2b.SubString(filenm2b.LastIndexOf("/") + 1)
pnl.GetView(x).GetView(1).Text = filenm2b
MediaManager.SetMediaFromFile(pnl.GetView(x).GetView(0), xui.DefaultFolder, "myalbum2/"&filenm2b,"image/*", Null) 'l2 is a list of the files
I only get three images from folder being repeated as displayed below instead of displaying eight/nine different pictures available in the folder
as shown in the images below:
The sample code is attached below via Google Drive due to a bit Upload Limit:
SMM Example2