简体   繁体   中英

Sending text data via USSD in Android

Is there a possibility to send text data via USSD in android?

The only way I found was to invoke an android.intent.action.CALL intent and append the text data after as follows

tel:#(short code) (bookmark) (number of pages) (page number) (MSISDN)*(text data)# eg tel:#161*129*1*1*5555*(text data)#

But once I append text data & start the ACTION_CALL but the text data will be converted into keypad codes.

That is ACL = 225.

Is there any other way to piggy back text data on an USSD call without getting the text converted into keypad codes?

OutgoingCallReceiver convert text data using these 2 methods: PhoneNumberUtils.convertKeypadLettersToDigits and PhoneNumberUtils.stripSeparators Using ACTION_CALL intent there is no way to prevent it happened. I hope there is a way to use internal library to send USSD directly, but have no idea how to achieve it...

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