I’ve tried it out already, and it works on my iOS builds but not on my Android ones.
I’m using it to grab an image + a string from my server that will allow me to keep my “coming soon” page up to date, but on Android it never works. I thought maybe it was taking too long to download the images, but they’re small files.
When I use the following I get the error message appearing straight away.:
local function imageListener(event)
if ( event.isError ) then
errStr = display.newtext ("Network image error - download failed", ....... )
end
end
I am using the following to grab the image and save it to the temp directory:
network.download( "http://mywebsite/folder/image.jpg", "GET", imageListener, "tempimage.jpg", system.TemporaryDirectory )
Have I done something wrong? It seems strange that it work on iOS with no problems, and yet the Android version makes no attempts to download the image. [import]uid: 84115 topic_id: 30153 reply_id: 330153[/import]
[import]uid: 84115 topic_id: 30153 reply_id: 120831[/import]