I cant seem to get showWebPopUp to work. Im testing on a droid incredible. my code is below…
local function webListener( event )
local shouldLoad = true
local url = event.url
if 1 == string.find( url, "corona:close" ) then
-- Close the web popup
shouldLoad = false
isWebPopup = false -- show Web object is gone
end
return shouldLoad
end
local function launchTwitter( event )
if(event.phase == "began")then
media.playEventSound(shootSoundID) -- i play this sound to be sure that this function is called
local options = { hasBackground=true, urlRequest=webListener }
native.showWebPopup(0, 0, \_screenWidth, \_screenHeight, "http://www.twitter.com", options )
end
end
Am i doing something wrong? I have the internet permission set.
Can i send an intent so that a web browser launches with the specified url? [import]uid: 27671 topic_id: 9106 reply_id: 309106[/import]