B4J Question Where to put images for menus

TorontoJim

Member
Licensed User
Longtime User
I'm trying to add an image to a menu. I entered this:

B4X:
Image: "cross.jpg"

in the json string for the menu.

I'm getting an error when I run it that the image can't be found. I tried adding it with the Files Manager. I tried putting it in the folders /Files and /Objects.

I can't figure out where File.DirAssets is to put the image. I read that it's a virtual folder ... but ... I can't find anything in the forums to tell me what to do here.
 

rwblinn

Well-Known Member
Licensed User
Longtime User
Hi Jim,

place the images in the project files folder (dirassets). Pls find attached sample project.
 

Attachments

  • MenuWithImages.zip
    6.5 KB · Views: 192
Upvote 0
Top