Skip to content Skip to sidebar Skip to footer

Making A Phone Call With A Number Extension

I have code to allow a user to click a button to make a phone call: public void addCallButton(){ ImageButton button = (ImageButton) findViewById(R.id.callUsButton); button.

Solution 1:

Have you tried using PhoneNumberUtils.PAUSE or PhoneNumberUtils.WAIT? You would have to put either one of them in front of the extension number.

So it would be

callIntent.setData(Uri.parse("tel:123456789"+PhoneNumberUtils.PAUSE+"#123"));    

Post a Comment for "Making A Phone Call With A Number Extension"