ussd

Android - Interacting with USSD dialog programmatically

会有一股神秘感。 提交于 2019-11-28 01:43:02
Is there a way for an Android app to interact with the USSD dialog programmatically? The app runs on rooted phone and will not be published to google store (only for internal usage). I'm aware that we can read the response of an USSD dialog (using accessibility hack). But what I'm trying to achieve here is to let the USSD dialog open and interact with it just like a normal user interact with it using the soft keyboard. Thanks. In the onAccessibilityEvent, you will need to first capture the input field, then fill it with your text, then click the "Send" (as explained by @lewil ngah)

How to run USSD commands on android?

让人想犯罪 __ 提交于 2019-11-27 19:53:05
has anyone know how to runs USSD command for checking phone's credit balance (the number is *123#) and get the result (the credit balance) for further processing?? thankss Bosah Chude You can run USSD codes in Android devices but you would be unable to parse the result in your application. This feature might be added to the Android SDK in the future but for now, you would have to look for an alternative. USSD can be run using simple Call intents. See Example: String ussdCode = "*" + "123" + Uri.encode("#"); startActivity(new Intent(Intent.ACTION_CALL, Uri.parse("tel:" + ussdCode))); as

AT command - USSD

二次信任 提交于 2019-11-27 14:46:19
I'm using minicom (serial port software for linux) for interacting with my GSM modem, actually now I'm trying to use one of my mobile-provider's services with AT-Command. here I say, I wanna see my balance: AT+CUSD=1,*555*87*1234# OK +CUSD: 1,"this service will deduct you 5cent from your balance, to continue please enter 1",15 so, here I sent "1", but nothing happened and session get closed. AT+CUSD=1,1 OK nothing happen, but session closed. With normal phone, after entering 1, I will get my current balance. Please help me. The format of the command is AT+CUSD=[<n>[,<str>[,<dcs>]]] , and the

Make USSD call in android

吃可爱长大的小学妹 提交于 2019-11-27 14:29:34
To check the balance first i have to make a call *xxx# and then i get a response with the multiple options to choose from and after i input the particular number i get the balance. What code can i use for the same in my android app? Dialing *xxx*x# is giving me error. Below is my code which works fine for the *xxx# calls: String encodedHash = Uri.encode("#"); String ussd = "*" + encodedHash + lCallNum + encodedHash; startActivity(new Intent(Intent.ACTION_CALL, Uri.parse("tel:" + ussd))); This works for me: private Uri ussdToCallableUri(String ussd) { String uriString = ""; if(!ussd.startsWith(

How to Get Response from USSD code from Android?

被刻印的时光 ゝ 提交于 2019-11-27 14:07:02
问题 I have written an application that uses ussd code. I want to send a request for a ussd but I don't know how to get the data and save it in a String. sample code: @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_main); Button btn = (Button) findViewById(R.id.button1); btn.setOnClickListener(new View.OnClickListener() { @Override public void onClick(View v) { // TODO Auto-generated method stub String encodedHash

How to read USSD messages in android? [closed]

狂风中的少年 提交于 2019-11-27 06:16:33
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? Yury 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. 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. Also there is a second approach. Good luck! 来源: https://stackoverflow.com/questions/6515906/how-to-read

How to run USSD commands on android?

 ̄綄美尐妖づ 提交于 2019-11-27 04:24:22
问题 has anyone know how to runs USSD command for checking phone's credit balance (the number is *123#) and get the result (the credit balance) for further processing?? thankss 回答1: You can run USSD codes in Android devices but you would be unable to parse the result in your application. This feature might be added to the Android SDK in the future but for now, you would have to look for an alternative. USSD can be run using simple Call intents. See Example: String ussdCode = "*" + "123" + Uri

How is it possible to do USSD requests on Android?

江枫思渺然 提交于 2019-11-27 01:14:09
Some custom dialer apps (for example, Dialer from MotoBlur ) are able to do USSD requests. Is it realy impossible to do this via SDK? You can intercept the USSD reponse , In order to do that you need to implement IExtendedNetworkService.aidl interface which binds the service with PhoneUtils. It then can intercept any USSD response and you can read that in your app easily . FYI https://github.com/alaasalman/ussdinterceptor You can dial ussd requests like any other number with an call-intent like this one: String encodedHash = Uri.encode("#"); String ussd = "*" + encodedHash + "12345" +

USSD service not working

耗尽温柔 提交于 2019-11-27 01:07:41
问题 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

Prevent USSD dialog and read USSD response?

落花浮王杯 提交于 2019-11-27 00:42:46
i did many research about ussd but I can't read USSD respone and how can I prevent ussd dialog like this application. https://play.google.com/store/apps/details?id=com.iba.ussdchecker&hl=en i install this https://github.com/alaasalman/ussdinterceptor restart my phone (S2 android 4.0.3), send ussd code but nothing happen, someone tell me that I have to read the log, but how can i do that. i try these code to read USSD from log USSD.java package com.example.ussd; import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; import java.util.Calendar; import java