Hi,
On the Kindle Fire, I use the following code to check if the user has Internet Access:
[lua]
if require(“socket”).connect(“google.com”, 80) == nil then
print(“Game: No internet, goto gameover”)
storyboard.gotoScene( “gameover”, “fade”, 400 )
else
print(“Game: We have internet, goto createPlayer”)
storyboard.gotoScene( “createPlayer”, “fade”, 400 )
end
[/lua]
The Kindle Fire has internet access, but never detects it this way.
I changed my build settings and added “android.permission.INTERNET”, but same result.
Any idea what I’m doing wrong here?