呼入/呼出自动打开拨号盘 [英] Automatically open dialpad on incoming / outgoing call

查看:202
本文介绍了呼入/呼出自动打开拨号盘的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想制作小工具的背景,当任一手机收到来电/用户进行呼出检测的。根据动作,当手机从耳朵带走自动显示数字拨号盘。

I was thinking of making a small background utility, which detects when either phone receives an incoming call / user makes an outgoing call. Based on the action, the numeric dialpad is displayed automatically when the phone is taken away from the ear.

我知道,如何检测呼叫类型,但后来不知道,如果有可能触发一个Intent行动,要求机器人以编程方式打开拨号盘。

I know, how to detect the type of call, but then don't know, if it's possible to trigger an Intent action to ask android to open the dialpad programatically.

PLS建议,如果可能,如何。

Pls suggest, if its possible and how.

谢谢
OMKAR Ghaisas

Thanks Omkar Ghaisas

推荐答案

是的,它是更多钞票创建来电广阔的投reciever liten然后onrecieve写下这个code它会打开一个拨号盘

yes it is posible create a broad cast reciever liten for incoming call then in onrecieve write down this code it will open a dial pad

   Intent dial = new Intent();
   dial.setAction("android.intent.action.DIAL");
   dial.setData(Uri.parse("tel:"));
   dial.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK); 
   context.startActivity(dial);

和广播服务阅读 http://www.vogella.de/articles /AndroidServices/article.html

也检查

http://androidsource$c$c.blogspot.in/2010/10/blocking-incoming-call-android.html

这篇关于呼入/呼出自动打开拨号盘的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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