Hello!
Have you got any results for your problem ?
Indeed i'd like to do the same thing but so far i haven't been able to
find any help on this matter
Thanks in advance.

On May 17, 10:48 am, Terence Eden <terence.e...@gmail.com> wrote:
> I want to call aUSSD(http://en.wikipedia.org/wiki/USSD) command and
> have the reply returned as a String.
>
> I can make the device automatically dial theUSSD- like so
>
> //
> String encodedHash = Uri.encode("#");
> Stringussd= "*" + encodedHash + "105" + encodedHash;
> startActivityForResult(new Intent("android.intent.action.CALL",
> Uri.parse("tel:" +ussd)), 1);
> //
>
> This calls theUSSDand the result is displayed in an alert menu
> generated by the OS dialer.  There's no way that I can see to
> intercept theUSSDreply, prevent the dialer displaying it, and then
> use the result as a String.
>
> Essentially, all I really want to do is (pseudo code)
> //
> String ussdReply = call("*#105#");
> //
>
> I've tried creating an "onActivityResult" but it never receives
> anything from the startActivityForResult.
>
> So, does anyone know how I can use the reply within an application?
>
> Thanks
>
> T
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to