Here is a BS way to do this using the existing SMSLib tools:

/**
 * I stole the header from another message - I don't believe it will
cause any problems (if someone has any better suggestions, please let
me know)
 */
final String header = "07914400000000F001000791999999F9000030";

//This is what is returned from the USSD process() callback:
final String encoded7 =
"D9775D0E0A8FC7EFBA9B0E1287D961F7B80C02A5E720980B060355A74450D84D06DDD36C36A88C87A7E565D0DB0D82E15E31D82B267381A86F90BC6C4EB3D9A0FCBB2E0785C7E377DD4D079DDF20FA1B14A6D35DE377FB757C43D16F7719";

PduParser parser = new PduParser();
Pdu pdu = parser.parsePdu(header + encoded7);
System.out.println(pdu.getDecodedText());

Outputs:
Your account balance is 0.00 USD and will expire on 08/10/12. To
refill your account go to att.com/GoPhone



Again, if someone comes across a better solution, I am all ears!

On Feb 9, 9:26 am, JordanThompson <[email protected]> wrote:
> Or can anyone point me to some code that does?
>
> thanks,
> Jordan

-- 
You received this message because you are subscribed to the Google Groups 
"SMSLib Discussion Group" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/smslib?hl=en.

Reply via email to