Hi good evening,
I’m trying to load a remote image via “display.loadRemoteImage”, it only works on simulator, it doesn’t work mobile phone. Is there a setup I need to do to make it work I already enable the write external strorage and internet permision.
local function networkListener( event )
if ( event.isError ) then
print ( “Network error - download failed” )
else
anchor(event.target)
event.target.x = 0
event.target.y = 0
end
end
local img_map = display.loadRemoteImage( “http://maps.googleapis.com/maps/api/staticmap?center=13.6217, 123.21781&zoom=16&size=120x100”, “GET”, networkListener, “map_thumbnail.png”, system.DocumentsDirectory, 0, 0 )
Thanks,