ussd

A new way to manage USSD dialogs in android

被刻印的时光 ゝ 提交于 2019-11-30 06:20:48
问题 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). 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. 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?

Run USSD Code in Android and Keep the App in the firstground

做~自己de王妃 提交于 2019-11-30 05:21:14
问题 I am creating a App in Android, which required run USSD Code in background. without send my application in background, Whenever I am using Intent.ACTION_CALL to run USSD String ussdCode = "*" + "123" + Uri.encode("#"); startActivity(new Intent("android.intent.action.CALL", Uri.parse("tel:" + ussdCode))); it send my application in background, and open dialer Interface on my application. So it is possible to run USSD code without open Dialer Interface in front. Thanks. 回答1: Use following code:

Using IExtendedNetworkService to get USSD response in Android

我的未来我决定 提交于 2019-11-30 04:02:14
I'm trying to find the way to make USSD requests in Android. I found this - http://commandus.com/blog/?p=58 . I added all needed files to my project. USSDDumbExtendedNetworkService.java: package com.android.ussdcodes; import android.app.Service; import android.content.BroadcastReceiver; import android.content.Context; import android.content.Intent; import android.content.IntentFilter; import android.net.Uri; import android.os.IBinder; import android.os.PatternMatcher; import android.os.RemoteException; import android.util.Log; import com.android.internal.telephony.IExtendedNetworkService;

hash key “#” stripped from ussd code in “tel:” links on html pages

▼魔方 西西 提交于 2019-11-30 04:01:01
问题 Good day all. I have a simple link on a webpage, in where the user can call an USSD number: <a href="tel:*111*2#" class="phoneCallButtonLink">*CLICK HERE AND CALL *111*2#</a> this is pretty straight forward; now, if I test it on desktop browser, it popups an alert asking me if I want to call (with skype) the number *111*2# , and thats ok. with my Android phone (S Note 3), when testing this page, the phone (or something) stripped out the last "#" (only the last) from the link, resulting in a

interactive ussd session(multi step) does not work on android 8(Oreo)

北城余情 提交于 2019-11-30 03:30:56
I am currently working with Telephony Manager(USSD response) available in android api level 26(Nexus 6P). For single step ussd session, it's working. reference: http://codedrago.com/q/140674/android-telephony-telephonymanager-ussd-android-8-0-oreo-does-android-8-0-api-26-support-sending-and-repying-to-ussd-messages example: USSD request : "A" (ussd session initiates) USSD response : "X" (ussd session terminates) TelephonyManager = telephonyManager(TelephonyManager)getSystemService(Context.TELEPHONY_SERVICE); Handler handler = new Handler(); TelephonyManager.UssdResponseCallback callback = new

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

风格不统一 提交于 2019-11-29 21:03:32
I'm trying to implement an application to send, receive and parse USSD codes on android. So far i used the code on http://commandus.com/blog/?p=58 in order to get this functionality. In order for the service to work, the phone needs to be restarted. This wouldn't be a problem the first time the user installs the application, but what i've noticed while testing on the emulator is that the phone will require a restart on every update, even if there's nothing new with the service. What i would like to know is the following: Might there be away to make the PhoneUtils bind to my service without a

Using IExtendedNetworkService to get USSD response in Android

为君一笑 提交于 2019-11-29 01:49:42
问题 I'm trying to find the way to make USSD requests in Android. I found this - http://commandus.com/blog/?p=58 . I added all needed files to my project. USSDDumbExtendedNetworkService.java: package com.android.ussdcodes; import android.app.Service; import android.content.BroadcastReceiver; import android.content.Context; import android.content.Intent; import android.content.IntentFilter; import android.net.Uri; import android.os.IBinder; import android.os.PatternMatcher; import android.os

A new way to manage USSD dialogs in android

生来就可爱ヽ(ⅴ<●) 提交于 2019-11-28 17:29:05
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). 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. 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? but all I could get from logs were somehow related to my app, although I could see them in Eclipse's

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

☆樱花仙子☆ 提交于 2019-11-28 16:46:31
问题 I'm trying to implement an application to send, receive and parse USSD codes on android. So far i used the code on http://commandus.com/blog/?p=58 in order to get this functionality. In order for the service to work, the phone needs to be restarted. This wouldn't be a problem the first time the user installs the application, but what i've noticed while testing on the emulator is that the phone will require a restart on every update, even if there's nothing new with the service. What i would

USSD service not working

烈酒焚心 提交于 2019-11-28 05:58:10
I'm trying to develop an application which silently dismiss the USSD responses. I've used the code from http://commandus.com/blog/?p=58 with minor changes. I've created the IExtendedNetworkService.aidl in the package com.android.internal.telephony and USSDDumbExtendedNetworkService inside the package com.commandus.ussd . The problem is, nothing happens after running the application (even after restarting the phone). Can someone point out what am I doing wrong? Should I write any additional code for making it work? IExtendedNetworkService.aidl package com.android.internal.telephony; /** *