Hello,
i am trying to write a code for making a phone call (android samsung galaxy tab ) , but nothing is happend…
can anyone help me??
Do i need to enable a permission on android for phone calls??
this is my code…
callButton = display.newImageRect(“phone.png”,60,60);
callButton:setReferencePoint( display.CenterLeftReferencePoint );
callButton.x=_W/2+_W/5;
callButton.y=0;
local function makeCall(event)
if event.phase == “ended” then
print(“calling”);
system.openURL(“tel:+302109374470”)
end
return true – important, don’t leave out
end
callButton:addEventListener(“touch”, makeCall)
[import]uid: 185094 topic_id: 31848 reply_id: 331848[/import]