How to send unstructured message to service provider?
Example:
1. getting prepaid account balance.
2. Getting other information from service provider (cricket, wedding, art of living... Vodafone india).
code:
CPhCltUssd* BalanceQuery = CPhCltUssd::NewL( ETrue );
CleanupStack::PushL( BalanceQuery );
TBuf<20> Vodafone_Balance_KeyString;
Vodafone_Balance_KeyString.Copy( _L("*100") );
TInt result = BalanceQuery->SendUssd( Vodafone_Balance_KeyString );
CleanupStack::PopAndDestroy( BalanceQuery );
:-)
No comments:
Post a Comment