ussd

Android - Interacting with USSD dialog programmatically

非 Y 不嫁゛ 提交于 2019-11-26 23:33:34
问题 Is there a way for an Android app to interact with the USSD dialog programmatically? The app runs on rooted phone and will not be published to google store (only for internal usage). I'm aware that we can read the response of an USSD dialog (using accessibility hack). But what I'm trying to achieve here is to let the USSD dialog open and interact with it just like a normal user interact with it using the soft keyboard. Thanks. 回答1: In the onAccessibilityEvent, you will need to first capture

How to read USSD messages in android? [closed]

送分小仙女□ 提交于 2019-11-26 11:56:13
问题 I am developing an android application. I basically want to read the USSD responses into the application. Is there any API to do so? How to fetch these messages into application? 回答1: There is no API for USSD request yet. The ticket to create this API is not closed. But the community has found several hacks how to add this feature to their applications. The first approach is to parse a log. Here is where you can find a class that do this. And here is a test application that uses this class.

How is it possible to do USSD requests on Android?

╄→гoц情女王★ 提交于 2019-11-26 09:34:24
问题 Some custom dialer apps (for example, Dialer from MotoBlur ) are able to do USSD requests. Is it realy impossible to do this via SDK? 回答1: You can intercept the USSD reponse , In order to do that you need to implement IExtendedNetworkService.aidl interface which binds the service with PhoneUtils. It then can intercept any USSD response and you can read that in your app easily . FYI https://github.com/alaasalman/ussdinterceptor 回答2: You can dial ussd requests like any other number with an call