Welcome!

Welcome to the official BlackBerry Support Community Forums.

This is your resource to discuss support topics with your peers, and learn from each other.

inside custom component

Java Development

Reply
New Developer
smotiwala
Posts: 15
Registered: ‎07-26-2008

How do I detect "data coding" of SMS set on device programatically?

Hi,

 

I want to detect the value of "data coding" of SMS set on device? How do I detect it through programatically?

 

I've found this configuration on the device at application->options->SMS->Data coding. 

 

Please help me in this regard

 

Thanks
Sohail

Please use plain text.
Administrator
MSohm
Posts: 14,065
Registered: ‎07-09-2008
My Carrier: Bell

Re: How do I detect "data coding" of SMS set on device programatically?

There is no API that provides this setting.
Mark Sohm
BlackBerry Development Advisor

Please refrain from posting new questions in solved threads.
Problem solved? Click the Accept As Solution button.
Found a bug? Report it using Issue Tracker
Please use plain text.
New Developer
smotiwala
Posts: 15
Registered: ‎07-26-2008

Re: How do I detect "data coding" of SMS set on device programatically?

Thanks.

 

Actually my application implements OutboundMessageListner interface for intercepting incoming and outgoing SMS messages. When message sends from the device which is greater than 160 characters, it is observed that notifyOutgoingMessage() event fires multipes times, and (6 characters of UDH message header information + 154 content characters) recieves from payloadText() of first event and subsequent data will recieves in next events of payloadText() method.

 

The data in payloadaText() will decoded as the data coding ["7 bits or UCS2'] sets in device.

so, If data coding is set to "7-bits" data is in 1 bytes so i'll read it byte by byte, when data coding set to "UCS2" the receiving data is in two bytes so I'll read two bytes at a time.

 

but the problem is that its hard to find when i read 1 byte or or two bytes.

 

Can you please help me in this regard

 

Thanks

Sohail

Please use plain text.