如何让拨号器在Android的应用价值? [英] how to get the value of dialer in android-application?

查看:85
本文介绍了如何让拨号器在Android的应用价值?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在开发了基于SIP的一个应用程序。我想储存拨号器的值(按键值是pssed调用$ P $)
即如果我拨打12345那么如何存放在特定的字符串或整数作进一步处理和串联此值。

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) i.e if i am dialing 12345 then how do i store this value in particular string or integer for further manipulation and concatenation.

点击那个五(5)按钮,手机拨号盘默认会open.i要做到这一点在我的申请。

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

推荐答案

在心中有以下情形:

您有一个拨号盘(0-9等按钮)和的EditText ,它获取每个用户点击一个数字时更新。当用户点击了做一个呼叫按钮,你需要调用的的getText()上的EditText - 比你有拨号号码

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.

在对方需要解析传入SIP INVITE消息,拿到号码(联系信息)(接收呼叫的人)。请记住,取决于服务器配置的手机号码可以映射到别名(用户名)。

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).

这篇关于如何让拨号器在Android的应用价值?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆