由网友(心不狠站不稳)分享简介:我需要在我的Android应用程序,其中包括在拨打#或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 inte...
我需要在我的Android应用程序,其中包括在拨打#或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...
相关推荐
最新文章