机器人如何拨打电话,包括"#"或者QUOT; P"在拨号? [英] Android How to make a call that includes "#" or "p" in the dial?

查看:249
本文介绍了机器人如何拨打电话,包括"#"或者QUOT; P"在拨号?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我需要在我的Andr​​oid应用程序,其中包括在拨打#或P的电话。

I need to make calls in my Android app that includes "#" or "p" in the dial.

如果我用下一个code:

If I use the next code:

Intent intent = new Intent(Intent.ACTION_CALL, Uri.parse("tel:629941945#22412"));
    startActivity(intent);

这使得调用数 629941945未经#和22412

如果我用下一个code:

And if I use the next code:

Intent intent = new Intent(Intent.ACTION_CALL, Uri.parse("tel:629941945p22412"));
    startActivity(intent);

这让没有在P的号召:62994194522412

有一个形式,我可以解决这个问题?

There is a form that I can solve it?

推荐答案

我已经解决了这个问题,这里是code解决它。

I have solved this problem Here is the code solving it.

Intent shortcutIntent = new Intent(Intent.ACTION_CALL, Uri.parse("tel:"+Uri.encode("*111*2#")));
startActivity(shortcutIntent);

它的工作罚款在我结束。 我希望它也有利于你们...

Its working fine at my end. I hope its also helpful to you guys...

这篇关于机器人如何拨打电话,包括"#"或者QUOT; P"在拨号?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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