I have a folder [XUI.DefaultFolder]/original which contains several jpg images. (1.jpg, 2.jpg.....etc)
Is it possible with SimpleMediaManager to load those images to be displayed?
Something like
then
which gives the error - Invalid link: file:///storage/emulated/0/Android/data/b4a.example/files/original/1.jpg (and 2.jpg etc).
[edit] I guess I could make an httpserver on the device and send the images via that but it seems excessive?
Is it possible with SimpleMediaManager to load those images to be displayed?
Something like
B4X:
MediaManager.SetMedia(pnl.GetView(x).GetView(0), GetURL(data.IndexOfFirstImage + x) & ".jpg")
then
B4X:
Sub GetURL (FileName As String) As String
Dim r As String = "file://" & xui.DefaultFolder & "/original/" & FileName
Return r
End Sub
which gives the error - Invalid link: file:///storage/emulated/0/Android/data/b4a.example/files/original/1.jpg (and 2.jpg etc).
[edit] I guess I could make an httpserver on the device and send the images via that but it seems excessive?
Last edited: