安卓手机通话中包含逗号和井号#

3

我需要制作一个带有逗号和井号的自动电话呼叫应用程序。

我尝试了以下方法。如果使用这种方法,井号后面的所有字符都不会被呼叫。

    Intent intent = new Intent(Intent.ACTION_CALL, Uri.parse("tel:" +"131#3131,,,44"));
    startActivity(intent);

所以,我再次尝试了这种方法。然后,逗号后面的所有数字都没有被调用。请问如何解决?

    Intent out = new Intent();
    out.setAction(Intent.ACTION_DIAL);
    out.setData(Uri.parse("tel:" + Uri.encode("+3943#333,,23")));
    startActivity(out);

在Android问题跟踪器上有一个与此有些相关的问题 - https://code.google.com/p/android/issues/detail?id=7993。我猜你看到的是预期的行为。 - harism
哦...那么,它不能被修复吗? :O 还有其他方法吗?我也可以使用其他类似的字符或方法。 (如果有的话) - Khant Thu Linn
也许有人有解决方法 - 但是很多时候,如果存在这样的方法,它们也会在错误报告中提到。 - harism
谢谢。看起来这个应用程序正在运行。https://play.google.com/store/apps/details?id=com.abzdev.confcalldialerstd 我想知道他们是如何克服的。 - Khant Thu Linn
1个回答

5

网页内容由stack overflow 提供, 点击上面的
可以查看英文原文,
原文链接