简体   繁体   中英

Running USSD on the background android

I have this code that performs a USSD call.

String ussdCode = "*" + "914"+"%23";
startActivity(new Intent("android.intent.action.CALL", Uri.parse("tel:" + ussdCode)));

Is there a way I can run the above command on the background or on the console instead of running it as a dial on the screen?

USSD call interuptn is not yet supported n Android

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

API support is not available for Call and CallBack. For now it is Sync call which opens PORT on client and server and do the communication.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM