ussd

Is it possible to read the call cost history from dialogue raised after ending the prepaid call?

柔情痞子 提交于 2019-12-20 09:37:29
问题 Is there a possibility of handling the data displayed on call cost dialogue received by prepaid user. I want to save all the balance reduction for along with call duration in my sqlite db. 回答1: As we learn from the already famous blog post As a start, look at the PhoneUtils class in the Android source code. [...] Specifically, looking at line 217, an intent with the name “com.android.ussd.IExtendedNetworkService” is being composed. So what you need to do is implement your own service that

Sending USSD code with alphabetic characters

我只是一个虾纸丫 提交于 2019-12-19 04:45:29
问题 In my android app, I am sending USSD codes ( #144#73# ) using below Intent : String baseUssd = Uri.encode("#") + "144" + Uri.encode("#"); StringBuilder builder = new StringBuilder(); builder.append(baseUssd); builder.append("73"); builder.append(Uri.encode("#")); Intent intent = new Intent(Intent.ACTION_CALL, Uri.parse("tel:" + builder.toString())); It's working well. What I want now is to send this code : #144#73MA# I run this using the dial pad, following the Operator USSD menu , that

What is the maximum number of characters in an USSD message?

本小妞迷上赌 提交于 2019-12-19 02:31:45
问题 I've understood that an USSD message consists of 160 bytes. For 7 bit data coding schemes, the maximum number of characters is 160*8/7 which gives 182 characters. It's unclear to me what is the maximum number of characters for UCS2 encoding. Normally, it would be something like 160/2, but I have some mixed information on this. 回答1: The maximum size of a USSD message is 160 bytes. For GSM 7 Bit messages you are correct in saying the limit is 182 characters. UC2 encoding per definition is fixed

Java USSD menu tree generation - how to

社会主义新天地 提交于 2019-12-18 12:32:30
问题 I want to generate a tree-based menu using Java that will appear on a USSD browser. Each node may have children, ending with leaf nodes. I will also have to maintain state regarding each user who accesses this menu (like his current position on the menu) to facilitate navigation. Any ideas on how I may achieve the tree generation and state management? 回答1: I assume that you get a message from the gateway such as: (Session#, UserInput) and you need to compute the next information to send to

Prevent USSD dialog and read USSD response?

一笑奈何 提交于 2019-12-17 05:48:06
问题 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;

Check balance using USSD Command in C#

风格不统一 提交于 2019-12-13 04:38:31
问题 I update for this question and know it worked correctly.. I try to check balance in my mavecom modem but I got no response in my textbox. It stays empty. Here my code : private SerialPort _port; private void simpleButton1_Click(object sender, EventArgs e) { _port = new SerialPort(); _port.PortName = cbPort.Text; _port.BaudRate = 115200; _port.Parity = Parity.None; _port.DataBits = 8; _port.StopBits = StopBits.One; _port.Handshake = Handshake.RequestToSend; port.DataReceived += new

AT COMMANDS - USSD returns only OK

只愿长相守 提交于 2019-12-12 16:15:03
问题 I have bought ZTE MF667 GSM Modem and i am using Hyper Terminal to send AT COMMANDS, i have a problem with USSD e.g : AT+CUSD=1,"*111#",15 (to check balance) but it returns only OK AT+CUSD=1,"*111#" returns only OK I have tested another AT COMMADS which work fine like AT+CMGL="ALL" to read SMS (WORKS) How could i resolve the problem please ? 回答1: First of all USSD messages are fairly similar to SMS in that a message is sent from the mobile device to the operator network. This means when you

sending USSD code Android

一个人想着一个人 提交于 2019-12-12 13:23:05
问题 I'm trying to send a USSD code through my cellphone, so I used an intent as many here suggested is the way to send the code. Unfortunately, every time I send the code it sends the same number *4355696753 the code I'm using to send the USSD is: sendCode.setOnClickListener(new View.OnClickListener() { @Override public void onClick(View v) { // TODO Auto-generated method stub String cUssd = ussdCodeEdTxt.getText().toString(); String cToSend = "tel:*" + cUssd + Uri.encode("#");

How to write a AT+CUSD ussd command to support maximum handsets

一世执手 提交于 2019-12-12 09:42:39
问题 I am facing an issue related to AT+CUSD command. On some Gsm modems, this command expects three parameters while on the others, it expects just two parameters. Moreover, different values of those parameters. I want to know that, how can I configure the Gsm modem so that this command can be executed in a uniform way on most Gsm modems. Forexample: On Nokia c6-01 , the cusd command is executed successfully only in this way: AT+CUSD=1,"*123#",15 Whereas on Sony Ericsson K750: AT+CUSD=1,"*123#"

Is there a standard USSD string I can use to test a random USSD gateway?

北城以北 提交于 2019-12-12 09:09:40
问题 I am developing an application that sends a USSD message to a USSD gateway. However, I do not have an account for the carrier owner of the gateway yet. Still, I have some other accounts and I would like to test if my USSD codding is fine. In that sense, is there a standard USSD command I can send and be understandable and answered by any USSD gateway regardless of the operator? If so, which one(s)? 回答1: As you probably know, USSD stands for Unstructured Supplementary Services Data, and the