简体   繁体   中英

how to get the value of dialer in android-application?

i am developing one application which is based on SIP. And i want to store the value of dialer(value of buttons which is pressed to call) ie if i am dialing 12345 then how do i store this value in particular string or integer for further manipulation and concatenation.

主屏幕截图

Clicking on that Five(5) button, phones default dialpad will open.i want to do this in my application.

Having in mind the following scenario:

You have a dialpad (buttons from 0-9 etc) and an EditText , which gets updated every time the user hits a digit. When the user hits the "Make a Call button" you need to call getText() on EditText - than you'll have the dialer number.

On the other side (the person that receives the call) you need to parse the incoming SIP INVITE message, to get the number(contact info). Keep in mind that depending on the server configuration phone-numbers can be mapped to aliases (usernames).

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM