How to interact with USSD dialog programmatically in android

前端 未结 2 1633
遇见更好的自我
遇见更好的自我 2021-02-06 12:40

I want to use USSD dialog which comes after dialing any USSD code say *123# which asks user to enter option number to perform

2条回答
  •  执笔经年
    2021-02-06 13:34

    My company Hover has developed an Android SDK which uses accessibility services to run multi-step USSD sessions and have it appear to happen inside your app. The underlying method is similar to what is outlined in the accepted answer, but there is more of an abstraction layer, support for lots of devices that behave differently, and it hides the session from the user.

    You create configurations for USSD services, trigger the session to run from your app and pass in any runtime variables you need. When the response is returned your app is notified and you can parse it as you need. It works on Android 4.3 and above.

    The SDK is free to integrate and use until you hit large scale. Please see our docs to get started.

    (Disclosure: I am the CTO of Hover)

提交回复
热议问题