USSD on Android from apps

Can I send and receive a response to USSD requests? I asked this question and found that this problem has not yet been implemented:

http://code.google.com/p/android/issues/detail?id=1285

Is there a way to handle USSD requests for Android apps?

+6
android
source share
3 answers

Android currently lacks developer support for interacting with USSD / MMI. Sending a USSD request is simple, as Terence suggested, but there is no easy way to handle an incoming USSD response.

As far as I know, there are currently two approaches if you want to interact with the answer.

  • Extract from magazines
  • or using the hidden interface - "com.android.internal.telephony.IExtendedNetworkService".

The interface is hidden in the telephony package, and you need to create it and include it in your project.

here is an example to get you started ..

http://commandus.com/blog/?p=58

+4
source share

Use this USSD Interceptor found on GitHub .

The project description states that it is:

USSD Interceptor is an Android service that allows you to intercept and receive USSD calls text results and relay them to any listeners.

Link: github.com/alaasalman/ussdinterceptor

+4
source share

Sending USSD is easy

startActivityForResult(new Intent("android.intent.action.CALL", Uri.parse("tel:*123" + Uri.encode("#"))), 1); 

Here is a piece of code that should help you with the answer. He reads magazines to get an answer. From http://codepaste.ru/7545/#

+3
source share

All Articles