Hi,
When I run the app from the simulator I can download images, I can find them on the Documents folder in the Sandbox and after that the images are displayed correctly however not on the device.
Device: Samsung Galaxy S4
Android version: 4.3
Error message:
I/Corona ( 5404): ...to\Documents\Corona Projects\SpaPicV4\scene\_game.lua:194: attempt to index upvalue 'currentImage' (a nil value) I/Corona ( 5404): Runtime error I/Corona ( 5404): I/Corona ( 5404): stack traceback: I/Corona ( 5404): [C]: ? I/Corona ( 5404): ...to\Documents\Corona Projects\SpaPicV4\scene\_game.lua:194: in function 'drawNextImage' I/Corona ( 5404): ...to\Documents\Corona Projects\SpaPicV4\scene\_game.lua:91: in function 'nextWord' I/Corona ( 5404): ...to\Documents\Corona Projects\SpaPicV4\scene\_game.lua:504: in function \<...to\Documents\Corona Projects\SpaPicV4\scene\_game.lua:431\> I/Corona ( 5404): ?: in function 'dispatchEvent' I/Corona ( 5404): ?: in function 'gotoScene' I/Corona ( 5404): ...s\Corona Projects\SpaPicV4\scene\_main\_categories.lua:266: in function '\_listener' I/Corona ( 5404): ?: in function \<?:141\> I/Corona ( 5404): ?: in function \<?:218\>
As I said, the images are loaded correctly from the simulator.
The images are being downloaded the the beginning and I can see that the size of the application goes from ~12MB to ~32MB, which is correct. There is 200 images being downloaded with a total size of ~20MB.
Is there anyway to actually look at this images from the decive? I look in the Documents folder but it’s empty.
The images are loaded like this:
currentImage = display.newImage(words[wordCounter].imageLocation, system.DocumentsDirectory, 500, 45)
Best regards,
Tomas