Click here to Skip to main content
15,943,479 members
Home / Discussions / Android
   

Android

 
QuestionNew Students Pin
IraztsMicheal1-Apr-16 8:04
IraztsMicheal1-Apr-16 8:04 
AnswerRe: New Students Pin
David Crow1-Apr-16 9:56
David Crow1-Apr-16 9:56 
AnswerRe: help me ???? Pin
Slacker00730-Mar-16 3:18
professionalSlacker00730-Mar-16 3:18 
GeneralRe: help me ???? Pin
Member 1242558930-Mar-16 18:45
Member 1242558930-Mar-16 18:45 
AnswerRe: help me ???? Pin
David Crow30-Mar-16 10:12
David Crow30-Mar-16 10:12 
Questionxamarin android Pin
Member 1235129830-Mar-16 0:28
Member 1235129830-Mar-16 0:28 
QuestionAndroid USSD Intercept Pin
viraj13830-Mar-16 0:25
viraj13830-Mar-16 0:25 
AnswerRe: Android USSD Intercept Pin
Member 1242558931-Mar-16 20:01
Member 1242558931-Mar-16 20:01 
<pre lang="C#">Dialing a USSD code from a custom activity is straight forward using a DIAL or CALL intent, but listening to the returned result is not due to Android not having proper support for intercepting USSD calls within the platform, but partial though undocumented support exists within the native dialer application.

As a start, look at the PhoneUtils class in the Android source code. The link is for 4.0.3 but I believe this partial support has been present since 2.3.

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 responds to that intent. The service needs to be implemented according to the IExtendedNetworkService.aidl which is a part of the Android framework.

The aidl exposes several functions but the one we care about is the getUserMessage(text) function in that service. The text is the final value returned from the USSD call.

Notes:

Since the service is binded on by PhoneUtils, then you need to start the service at phone boot up. It also means that any modification to the service will need a phone reboot.
Returning null from getUserMessage will suppress the dialer from showing the USSD result but there’s no way to completely hide the dialer.
You can also use the other functions to change the text shown while the call is in progress.
This doesn’t seem to work on USSD prompts(menus), only on final results.</pre>
QuestionAndroid Studio & Ubuntu Pin
David Crow29-Mar-16 16:16
David Crow29-Mar-16 16:16 
AnswerRe: Android Studio & Ubuntu Pin
Peter_in_278029-Mar-16 16:29
professionalPeter_in_278029-Mar-16 16:29 
QuestionAndroid Wear Apps Pin
StampedePress29-Mar-16 5:22
StampedePress29-Mar-16 5:22 
AnswerRe: Android Wear Apps Pin
mukul chadhaa7-Apr-16 0:30
mukul chadhaa7-Apr-16 0:30 
QuestionEnglish Dictionary Application using Android Studio Pin
Chethan Chethan16-Mar-16 10:30
Chethan Chethan16-Mar-16 10:30 
AnswerRe: English Dictionary Application using Android Studio Pin
Richard MacCutchan16-Mar-16 23:13
mveRichard MacCutchan16-Mar-16 23:13 
GeneralRe: English Dictionary Application using Android Studio Pin
Chethan Chethan19-Mar-16 6:53
Chethan Chethan19-Mar-16 6:53 
QuestionHow can we develop Facial Makeup application in android Pin
Member 123773768-Mar-16 0:53
Member 123773768-Mar-16 0:53 
AnswerRe: How can we develop Facial Makeup application in android Pin
Richard MacCutchan11-Mar-16 22:06
mveRichard MacCutchan11-Mar-16 22:06 
AnswerRe: How can we develop Facial Makeup application in android Pin
Richard MacCutchan13-Mar-16 23:07
mveRichard MacCutchan13-Mar-16 23:07 
QuestionThesis Title Pin
marian alciso3-Mar-16 6:42
marian alciso3-Mar-16 6:42 
AnswerRe: Thesis Title Pin
Richard MacCutchan3-Mar-16 7:02
mveRichard MacCutchan3-Mar-16 7:02 
SuggestionRe: Thesis Title Pin
David Crow3-Mar-16 14:36
David Crow3-Mar-16 14:36 
QuestionI want to save a MP4 Video from array list of frames Pin
Member 1110365329-Feb-16 5:00
Member 1110365329-Feb-16 5:00 
GeneralRe: I want to save a MP4 Video from array list of frames Pin
David Crow29-Feb-16 7:50
David Crow29-Feb-16 7:50 
QuestionHelp need Pin
Member 1235161125-Feb-16 4:32
Member 1235161125-Feb-16 4:32 
QuestionRe: Help need Pin
Richard MacCutchan25-Feb-16 5:23
mveRichard MacCutchan25-Feb-16 5:23 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.