拨号号码不及时 [英] Dial Number Without Prompt

查看:138
本文介绍了拨号号码不及时的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想编写一个函数为Android平台,让我打911没有任何形式的提示。

I'm trying to write a function for the Android platform that will allow me to call 911 without any sort of prompt.

我已经添加的权限 android.permission.CALL_PRIVILEGED 。我只是需要将拨打911在我的选项菜单按钮的preSS的功能。

I have already added the permission android.permission.CALL_PRIVILEGED. I just need a function that will dial 911 at the press of a button in my options menu.

推荐答案

根据API,<一个href="http://developer.android.com/reference/android/content/Intent.html#ACTION%5FCALL">ACTION_CALL会做你的需要,但不紧急号码,而<一href="http://developer.android.com/reference/android/content/Intent.html#ACTION%5FDIAL">ACTION_DIAL将显示与拨号提示拨号器,但允许拨打紧急电话号码。

According to the API, ACTION_CALL will do what you need but not to emergency numbers, while ACTION_DIAL will display a dialer with the dial prompt but allows to call emergency numbers.

恐怕是没有办法做你想做的,一个很好的理由 - 以prevent拨错紧急服务。这是一个precautionary措施。

I'm afraid there is no way to do what you want, for a good reason - to prevent misdials to emergency services. It's a precautionary measure.

这篇关于拨号号码不及时的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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