简体   繁体   English

在 Android 中通过 USSD 发送文本数据

[英]Sending text data via USSD in Android

Is there a possibility to send text data via USSD in android?是否可以通过 android 中的 USSD 发送文本数据?

The only way I found was to invoke an android.intent.action.CALL intent and append the text data after as follows我发现的唯一方法是调用 android.intent.action.CALL 意图和 append 之后的文本数据,如下所示

tel:#(short code) (bookmark) (number of pages) (page number) (MSISDN)*(text data)# eg tel:#161*129*1*1*5555*(text data)# tel:#(short code) (bookmark) (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.但是一旦我 append 文本数据并启动 ACTION_CALL 但文本数据将转换为键盘代码。

That is ACL = 225.即 ACL = 225。

Is there any other way to piggy back text data on an USSD call without getting the text converted into keypad codes?有没有其他方法可以在 USSD 呼叫中捎带文本数据而不将文本转换为键盘代码?

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. OutgoingCallReceiver 使用以下 2 种方法转换文本数据: PhoneNumberUtils.convertKeypadLettersToDigits 和 PhoneNumberUtils.stripSeparators 使用 ACTION_CALL 意图没有办法防止它发生。 I hope there is a way to use internal library to send USSD directly, but have no idea how to achieve it...我希望有一种方法可以使用内部库直接发送USSD,但不知道如何实现......

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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