Hi,
I am struggling to understand why my network.request works fine in simulator, but once I package APK file and install it doesnt work.
I cut down the code to show demo, and it does not work on my samsung galaxy s
display.newText(“first line of code”, 0, 50, native.systemFontBold, 15)
local function networkListener( event )
display.newText(“network listener fired”, 0, 100, native.systemFontBold, 15)
if ( event.isError ) then
print( “Network error!”)
display.newText( “network error”, 2, 125, native.systemFont,25 )
else
display.newText(“worked”, 2, 125, native.systemFont,25 )
end
end
network.request( “http://x.x.x.x/location.aspx”, “GET”, networkListener )
My build.settings allows android.permission.INTERNET, it will show the first line of text “first line of code” but nothing else.
Please can anyone help me? [import]uid: 22405 topic_id: 5786 reply_id: 305786[/import]