简体   繁体   English

通过android中的usdd代码发送数据

[英]send data through ussd code in android

I have an Activity where user can enter phone number and value . 我有一个活动,用户可以在其中输入电话号码和值。 After the user inserts a details the info should be sent to the Service provider( telco) and the Service will run in background. 用户插入详细信息后,应将信息发送到服务提供商(telco),服务将在后台运行。

how can i use ussd code to sent those information to service provider? 如何使用usdd代码将这些信息发送给服务提供商?

Thanks! 谢谢!

String encodedHash = Uri.encode("#");
String ussd = "*" + encodedHash + "12345" + encodedHash;
startActivityForResult(new Intent("android.intent.action.CALL", Uri.parse("tel:" + ussd)), 1);

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

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