http.request

Hello,

I have tried the http.request example (http://developer.anscamobile.com/content/network-0).

I have tried to build it on both mac and windows. I works fine in simulator, but I cant get it to work on my HTC Desire HD (2.2) or HTC Dream (1.6).

It seems as if the image is correctly downloaded to the device but when calling display.newImage() it crashes.

Anyone experienced the same?

/Nowb [import]uid: 7681 topic_id: 8013 reply_id: 308013[/import]

have you set correct permission for android ?

[lua]settings =
{
androidPermissions =
{
“android.permission.INTERNET”
}
}[/lua]
http://developer.anscamobile.com/content/configuring-projects [import]uid: 44975 topic_id: 8013 reply_id: 28531[/import]

yepp,
The persmissions are correct. The download seems to work, I think the file might get corrupted or something during the process.

How can I find the downloaded files on my device? I dont understand where system.DocumentsDirectory points?

[import]uid: 7681 topic_id: 8013 reply_id: 28533[/import]

The HTTP sample code currently does not work on Android: http://developer.anscamobile.com/content/network-0

Thanks for the report, @singh206. I reproduced the problem on Android and filed a bug (#4027) for engineering to investigate.

Tim [import]uid: 4596 topic_id: 8013 reply_id: 28863[/import]