Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Get the number pressed from a dial-pad

Tags:

android

I want to get the number pressed from the dialpad during an ongoing call

scenario:

  1. Say person A calls person B.
  2. During the call, person A opens dialpad and presses a number,say number 1

So How can I get the dialed no?

like image 524
Toni Avatar asked Oct 21 '22 13:10

Toni


1 Answers

get the number pressed from the dialpad during an ongoing call :

To get Number from outgoing call you will need to register an BroadcastReceiver for PHONE_STATE Action. inside onReceive method you will retrieve as:

String outgoingNumber = intent.getStringExtra(Intent.EXTRA_PHONE_NUMBER)

For more help you can see following tutorial :

Manipulating Incoming & Outgoing Calls Tutorial For Android

like image 189
ρяσѕρєя K Avatar answered Oct 31 '22 11:10

ρяσѕρєя K