Sending USSD request in one session

2019-08-23 02:23发布

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

0条回答
登录 后发表回答