system.openURL and android and phone call

Need a little help… On a live device system.openURL(“tel:XXXXXXXX”) is not doing anything… Is there something else I need to do to get it to make a phone call> [import]uid: 33705 topic_id: 18490 reply_id: 318490[/import]

That should be it. Can you post up your full code? [import]uid: 84637 topic_id: 18490 reply_id: 70895[/import]

Sure here is the function: I added the play button to show when it is clicked so I could make sure that it was getting to that function. Was not sure if anything else needed added in the build ect…

function callSanta:tap(e)

system.openURL(“tel:2189362100”)
– playBtn.isVisible = true

end [import]uid: 33705 topic_id: 18490 reply_id: 70910[/import]

I even added to the build.settings and still not working… Either is the inmobi on android.

settings =
{
orientation =
{
default = “landscapeRight”,
supported = { “landscapeRight” },
},

android =
{
versionCode = “1”
},

androidPermissions =
{
“android.permission.INTERNET”,
“android.permission.ACCESS_NETWORK_STATE”
},
}

[import]uid: 33705 topic_id: 18490 reply_id: 70922[/import]

Anyone else get this working for android? I tried on a Droid x and Droid 2. No luck. [import]uid: 33705 topic_id: 18490 reply_id: 71100[/import]

Have you tried :

function callSanta:tap(e)  
  
system.openURL("tel:218-936-2100")  
-- playBtn.isVisible = true  
  
end  

Edit : you may also need

android.permission.CALL_PHONE [import]uid: 84637 topic_id: 18490 reply_id: 71139[/import]

Ha got it I forgot the comma when I added the next permission… Thanks for the help…

When I add system.openURL(“tel:218-936-2100”) still nothing on the device.

Then when I add the android.permission.CALL_PHONE It worked.

*****Next is getting to the bottom of the ads working nice on ios

[import]uid: 33705 topic_id: 18490 reply_id: 71177[/import]

Glad to hear you got it working :slight_smile:

For a full list of android permissions see this : http://developer.android.com/reference/android/Manifest.permission.html [import]uid: 84637 topic_id: 18490 reply_id: 71240[/import]