In an app I use many images, which I have pasted in a folder called “images”. I drag this folder to the properties of the project.
In execution, to change the image in the control I use:
image1.src = "images/Photo-" & CStr(Number) & ".jpg"
where Number is a correlative number of the saved images (Photo-1.jpg, Photo-2.jpg …)
When I run in the browser everything works ok, but when I deploy to Phonegaph, and compile an Apk, the photos do not appear.
I have tried to put all the images in the work folder, and in the manifest file write all their names ((Photo-1.jpg, Photo-2.jpg …), changing the load of the image as;
image1.src = "Photo-" & CStr (Number) & ".jpg"
And then everything works.
That is, phonegaph does not find the files in the “images” folder, and does not compile them in the apk.
Is there any solution?