call in android

Hello,

I want to enable phone call in my app but when I use bellow code direct to call some users want to change number before call.

system.openURL("tel:"..mobile)

some users have two SIM card and they want to call with another SIM

up

We have no way in Corona SDK to allow the user to select a SIM card.  Using system.openURL() you’re going to get the phone’s default behavior.

how we can put number on screen like when user type a number.

Well, you can use native.newTextField() and use the number keyboard and then take the collected number and pass it to system.openURL().

You can of course build your own keyboard if you want it to look like that. Numeric keyboards just require a few buttons/graphics with touch handlers on them. Collect your entry and send it to system.openURL().

Rob

up

We have no way in Corona SDK to allow the user to select a SIM card.  Using system.openURL() you’re going to get the phone’s default behavior.

how we can put number on screen like when user type a number.

Well, you can use native.newTextField() and use the number keyboard and then take the collected number and pass it to system.openURL().

You can of course build your own keyboard if you want it to look like that. Numeric keyboards just require a few buttons/graphics with touch handlers on them. Collect your entry and send it to system.openURL().

Rob