activate voice call in android

i am planning to create a simple telephone directory for android…the first thing i did was just a list and it was ok…

and then Im planning to upgrade it, that when you touch the number or touch a button near the number it will activate the voice call. i tried the code below but doesnt work…what could be the problem?

local function onComplete( event )

if “clicked” == event.action then
local i = event.index

if 1 == i then
– Do nothing; dialog will simply dismiss

elseif 2 == i then

– code below when enabled triggers skype when im using
– desktop but when using samsung galaxy, nothing happens
–system.openURL(“callto:+632-721-8585”)

– code below doesnt do anything even when using my
– desktop even when im using android phone, what could be the problem?

system.openURL(“tel:+632-721-8585”)

end

end
end

local widget = require( “widget” )

local background = display.newImage(“carbonfiber.jpg”, true) – flag overrides large image downscaling
background.x = display.contentWidth / 2
background.y = display.contentHeight / 2

local roundedRect = display.newRoundedRect( 10, 50, 300, 40, 8 )
roundedRect:setFillColor( 0, 0, 0, 170 )

local t = display.newText( “Waiting for button event…”, 0, 0, native.systemFontBold, 18 )
t.x, t.y = display.contentCenterX, 70
local buttonHandler = function( event )
native.showAlert( “Voice Call”, “Continue?”,{ “No”, “Yes” }, onComplete )
end

local button2 = widget.newButton{
default = “telephone.jpg”,
over = “telephoneover.jpg”,
id = “button2”,
–label = “+632-721-85-85”,
–font = “Arial-BoldItalic”,
–labelColor = { default = { 51, 255, 51, 255 } },
fontSize = 22,
onPress = buttonHandler,
emboss = true
}
button2.x = 160; button2.y = 240 [import]uid: 200042 topic_id: 34091 reply_id: 334091[/import]

is this in your build.settings file:

androidPermissions = {
“android.permission.CALL_PHONE”
} [import]uid: 18783 topic_id: 34091 reply_id: 135594[/import]

is this in your build.settings file:

androidPermissions = {
“android.permission.CALL_PHONE”
} [import]uid: 18783 topic_id: 34091 reply_id: 135594[/import]

ever get this working?

[import]uid: 18783 topic_id: 34091 reply_id: 137406[/import]

ever get this working?

[import]uid: 18783 topic_id: 34091 reply_id: 137406[/import]