标签: android
我希望在通话过程中从拨号盘上按下号码
情形:
那么如何才能获得拨号?
答案 0 :(得分:3)
在通话期间从拨号盘获取号码:
要从拨打电话中获取号码,您需要为BroadcastReceiver操作注册PHONE_STATE。在onReceive方法内,您将检索为:
BroadcastReceiver
PHONE_STATE
onReceive
String outgoingNumber = intent.getStringExtra(Intent.EXTRA_PHONE_NUMBER)
有关更多帮助,请参阅以下教程:
Manipulating Incoming & Outgoing Calls Tutorial For Android