一种新的方式来管理的android USSD对话 [英] A new way to manage USSD dialogs in android

查看:184
本文介绍了一种新的方式来管理的android USSD对话的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我一直在阅读有关在这里USSD对话和其他论坛几天线程。 (通过USSD我的意思是运营商的通知,在其通话费用的详细信息)。

I've been reading threads about USSD dialogs in here and other forums for a few days. (by USSD I mean operator's notifications with call cost details in it).

我看到很多的解决方案,显然是工作在Android的API较低水平,但大量的试验后,估计他们不工作了,或者至少我不能让他们的工作。

I've seen many solutions which apparently worked for lower API levels in android but after lots of tests, figured they don't work anymore or at least I couldn't get them to work.

首先,我想知道是否有任何方法来检测,如果USSD对话已显示给用户。所以我想这: <一href="http://stackoverflow.com/questions/22057625/$p$pvent-ussd-dialog-and-read-ussd-response">$p$pvent USSD对话和阅读USSD回应?

First I wanted to know if there's any way to detect if a ussd dialog has been shown to the user. so I tried this : Prevent USSD dialog and read USSD response?

但我也需要从日志以某种方式与我的应用程序,虽然我可以看到他们在Eclipse的LogCat中,但没有MMI相关的日志被捕获在我的应用程序! 也许这是工作在较低的Andr​​oid版本比我(4.2.2)。

but all I could get from logs were somehow related to my app, although I could see them in Eclipse's LogCat but no MMI related logs were captured in my app ! maybe it was working in lower Android versions than mine (4.2.2).

然后,我决定用IExtendedNetworkService就像是在下面的链接及其它使用:

then I decided to use "IExtendedNetworkService" like it was used in the following links and many others :

<一个href="https://github.com/alaasalman/ussdinterceptor">https://github.com/alaasalman/ussdinterceptor

<一个href="http://stackoverflow.com/questions/14148952/using-iextendednetworkservice-to-get-ussd-response-in-android">Using IExtendedNetworkService取得的Andr​​oid USSD响应

如何读取Android的USSD消息?

<一个href="http://stackoverflow.com/questions/10722178/android-implementing-ussd-features-binding-a-service-to-the-phoneutils-withou">Android - 实施USSD功能。而不需要重新启动手机上的每次更新绑定到PhoneUtils服务

Android - Implementing USSD features. Binding a service to the PhoneUtils without restarting the phone on every update

但它也没用针对Android 4.2.2及以上。

but it was also useless for android 4.2.2 and above.

后来我发现这个链接: <一href="http://stackoverflow.com/questions/24013790/how-to-dismiss-system-dialog-in-android/24013884#24013884">How以关闭系统对话框中的Andr​​oid?

then I found this link : How to dismiss system dialog in Android?

这似乎很有前途,但我无法得到它即使经过大量的测试工作。 我想,也许我是做错了什么,或者是较低的原料药也。

it seemed promising but I couldn't get it to work even after lots of tests. I thought maybe I was doing something wrong or it was for lower APIs too.

之后,我尝试过很多其他的东西像模拟home键和返回键,甚至触摸编程来隐藏通知,但他们没有,因为他们在我自己的活动工作的所有工作。

after that I tried many other things like simulating home key and back key and even touching programmatically to hide that notification but none of them worked since they all work under my own activity.

有谁知道,如果上述任何一种方法或其他工作的管理,甚至在安卓4.2.2及以上检测USSD消息?

Does anyone know if any of these methods or others work for managing or even detecting USSD messages in android 4.2.2 and above ?

我真的AP preciate任何帮助, 在此先感谢。

I really appreciate any help, thanks in advance.

推荐答案

不幸的是没有办法的。

我们一直在寻找的命令也是一个解决这个问题的,但如果它变成了获取信息,只能通过手机登录不上的所有设备保障工作100%的解析。

We've been searching for that command is also a solution to this problem, but if it turned out to get information only through the parsing of logs in the phone that does not guarantee 100% of the work on all devices.

其结果是,我们能够达到与移动运营商的协议在我国(我们只有3的移动运营商),并且它们为我们提供了API获得的电话号码的平衡,但这种方法仅适用在本地。

As a result, we were able to reach an agreement with mobile operators in our country (we only have 3 mobile operator), and they provided us with the API to obtain the balance of the phone number, but this method only works locally.

这篇关于一种新的方式来管理的android USSD对话的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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