When I use the native.cancelWebPopup() and then do a showwebpopup call in a loop it will only show every other webpage. For example blamza.com will show, then the main menu of the app will show, then the jetpack-joyride page will show, etc
I am using the latest stable build 2011.591 on a windows machine. I am building for Android and my test device is a HTC Sensation 4G
[code]local button1Press = function( event )
local listOfSites = {“http://www.blamza.com”, “http://www.blamza.com/att-sony-xperia-play-4g-review/”, “http://www.blamza.com/jetpack-joyride-review/”, “http://www.anscamobile.com”}
local nextIndex = 1
local maxSites = 4
local function changeSites()
native.cancelWebPopup()
print( “listener called” )
native.showWebPopup(listOfSites[nextIndex])
nextIndex = nextIndex + 1
if nextIndex > maxSites
then nextIndex = 1
end
end
timer.performWithDelay(30000, changeSites, 0)
end
[/code] [import]uid: 12716 topic_id: 16236 reply_id: 316236[/import]