如何在android中读取USSD消息? [英] How to read USSD messages in android?

查看:15
本文介绍了如何在android中读取USSD消息?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在开发一个安卓应用程序.我基本上想将 USSD 响应读入应用程序.是否有任何 API 可以这样做?如何将这些消息提取到应用程序中?

I am developing an android application. I basically want to read the USSD responses into the application. Is there any API to do so? How to fetch these messages into application?

推荐答案

目前还没有用于 USSD 请求的 API.用于创建此 API 的并未关闭.但是社区已经发现了一些如何将这个功能添加到他们的应用程序中的技巧.

There is no API for USSD request yet. The ticket to create this API is not closed. But the community has found several hacks how to add this feature to their applications.

  1. 第一种方法是解析日志.这里是您可以找到执行此操作的类的地方.而这里是使用此类的测试应用程序.
  2. 还有还有还有第二种方法.
  1. The first approach is to parse a log. Here is where you can find a class that do this. And here is a test application that uses this class.
  2. Also there is a second approach.

祝你好运!

这篇关于如何在android中读取USSD消息?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆