Image path

Nyptop

Active Member
Licensed User
Longtime User
I try to find the path of an image in the following manner:

B4X:
Sub OnClick(Thumbnail As Panel)
   whichimage = Thumbnail.Tag
     Dim iIntent As Intent
         Dim Path1 As String
         Path1 = File.Combine(File.DirInternal, whichimage & ".jpg")
            iIntent.Initialize(iIntent.ACTION_VIEW,"file://" & Path1)
            iIntent.SetType("image/jpeg")
            StartActivity(iIntent)
End Sub

However when this code is executed the image does not appear and instead I get a 'link broken' image. Does anyone know to get the image up?

Cheers,

Neil
 

Nyptop

Active Member
Licensed User
Longtime User
Thanks Erel, works great now thanks :)

As an extension of this is there a way in which one could open more than one image at the same time?
 
Upvote 0
Top