I am testing this piece of code on a Samsung Galaxy S with Android 2.1 and when I click on the “OK” button nothing happens.
(When I build for iphone everything is correct)
[code]
– Handler that gets notified when the alert closes
local function onComplete( event )
if “clicked” == event.action then
local i = event.index
if 1 == i then
system.openURL( “http://www.google.com” )
elseif 2 == i then
system.openURL( “http://developer.anscamobile.com” )
end
end
end
– Show alert
local alert = native.showAlert( “Corona”, “Dream. Build. Ship.”,
{ “OK”, “Learn More” }, onComplete )
[code] [import]uid: 6661 topic_id: 4389 reply_id: 304389[/import]