network.request problem on real device

hello developers …
i am doing network.request( “MYSERVERLINK” , “GET”, networkListener)

the code run well in simulator but on devices nothing happens
i have checked the connection and all things right i don’t know with this happens on real device is there any optional parameters that i should pass them to this function
device : samsung galaxy s 1
os : android 2.2

thanks in advance
[import]uid: 74537 topic_id: 23823 reply_id: 323823[/import]

Add this line in your build.settings (in your android section)

android.permission.INTERNET

You can read more about android permissions here : http://developer.android.com/reference/android/Manifest.permission.html [import]uid: 84637 topic_id: 23823 reply_id: 95919[/import]

thanks @Danny but i have with the same project
this part of code
network.download()

and this works fine

why just network.request has problem [import]uid: 74537 topic_id: 23823 reply_id: 95921[/import]

Odd, just to be sure can you post up your build.settings file ? [import]uid: 84637 topic_id: 23823 reply_id: 95936[/import]

settings =
{

androidPermissions =
{
“android.permission.INTERNET”
},
android =
{
plist =
{
UIAppFonts =
{
“font.ttf”
}
},
},

iphone =
{
plist =
{
CFBundleIconFile = “Icon.png”,
CFBundleIconFiles =
{
“Icon.png”,
“Icon@2x.png”,
“Icon-72.png”,
},
UIAppFonts =
{
“font.ttf”
},
},
}
} [import]uid: 74537 topic_id: 23823 reply_id: 96058[/import]

Please see this post : http://developer.anscamobile.com/forum/2011/08/22/networkrequest-not-working-device-fine-simulator [import]uid: 84637 topic_id: 23823 reply_id: 96069[/import]