Sending USSD request in one session

女生的网名这么多〃 提交于 2019-12-08 09:23:48

问题


I would like to call a ussd in this format *123*1*3# to shorten the process of dialing *123# waiting for menu then 1 waiting the menu then 3.

I discover that in some ussd calls it's possible and some not possible but their are number of applications which does this e.g https://usehover.com

Am basic Android developer bellow is the code which i used to run ussd command and i believe is lucking support

String ussd = "*123*1*4*5" + Uri.encode("#");
startActivity(new Intent(Intent.ACTION_CALL, Uri.parse("tel:" + ussd)));

to get final output of menu 5 but didn't work, in additional i also tried https://gist.github.com/posei/1e5ae219329aa1015d3c55c3982352c5 which is not working as well

Passing multiple USSD commands in a single call

interactive ussd session(multi step) does not work on android 8(Oreo)

I like to ask if there is anyone who knows how to do this or any solution which can be used to solve this.

Thanks

来源:https://stackoverflow.com/questions/56930332/sending-ussd-request-in-one-session

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!