Hey guys please see the code below… Am i missing something? or is this just a bug?
local downloadPhoto=function() native.setActivityIndicator(true) local function networkListener(e) if not(e.isError) then if (e.phase=="ended") then native.setActivityIndicator(false) --local photo=display.newImage(e.response.filename,e.response.baseDirectory) --works local object=display.newCircle(0,0,100) object:translate(display.contentCenterX,display.contentCenterY) object.fill={type="image",baseDir=e.response.baseDirectory,filename=e.response.filename} --doesn't work end end end network.download("http://ejawebdesigns.com/image.jpg","GET",networkListener,"image.jpg",system.TemporaryDirectory) end local buttonText=display.newText("Download Photo",0,0,system.nativeFont,25) buttonText:translate(display.contentCenterX,display.contentCenterY) buttonText:setFillColor(1) buttonText:addEventListener("tap",downloadPhoto)