Need Help with Loading Images

Basically, I wanted to mimic the loadRemoteImage function on Android platform, which is about to create an image object with the picture downloaded from the website. All those work perfectly on the simulator, but the image just never shows up on a real Nexus One. I was able to get the picture downloaded to either temp or document folder on the device, but seems display.newImage function gets choked. Can anyone shed some light on this?

Also tried the SimpleImageDownload sample, and that doesn't work on actual N1 either.

did you set the INTERNET permissions in your build.settings file?
http://developer.anscamobile.com/content/configuring-projects#Application_Permissions_Android

(scroll up for an example)

@jmp909, yes, I did. As a matter fact, I can confirm that the picture got actually downloaded to the device. The problem is Corona just can't create the image object off from the picture downloaded.

ADDITION: The SimpleImageDownload sample comes with the SDK doesn't work properly on the actual Android device either (Google's N1). Curious if anyone had any luck with that.

Hmm, I'm having similar issues on an iPhone 4. It seems images download fine, but the display.newImage() function doesn't successfully load them. However the files do seem to be saved.

views:1437 update:2011/9/28 9:01:40
corona forums © 2003-2011