BlackBerryForums.com : Your Number One BlackBerry Community      

»Sponsored Links




Closed Thread
 
LinkBack Thread Tools
  (#1 (permalink)) Old
Aeveen Offline
New Member
 
Posts: 1
Join Date: Mar 2006
Model: 7250
Exclamation DataGram Malformation Error??? (SMS) - 03-31-2006, 05:18 PM

Hi All,

I'm developing an application that reacts to incoming SMS messages on (any) blackberry platform. So far i've been very successful in reguards to the code working perfectly in the simulator platform and on my BlackBerry (Verizon) 7250.

Problem's started cropping up however when i move the same application onto a BlackBerry 7100t. When my DataGram receive's the incoming SMS message the string is totally malformed.

I will send:
11|Raven~JsoYwnFspUNotZ
18|Raven~JsoYwnFspUNegW

And receive:
Raven18□=Raven□bJsoYwnFspUNegW

Part of the data is totally cut off and other seems to be converted to a diffrent charset than was sent.

Here is my code i use to grab incoming SMS messages:

dataConnection = (DatagramConnection)Connector.open("sms://");
Datagram dataGram = dataConnection.newDatagram(dataConnection.getMaxi mumLength());
dataConnection.receive(dataGram);
msg = new String(dataGram.getData());

System.out.println("SMS Message: " + msg);

Has anyone experianced this before? Is there an easy way to force the datagram to a specific charset?
   
Sponsored Links
Please Login or Register to Remove these Advertisements!

Closed Thread


Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On






Copyright © 2004-2008 BlackBerryNews.com, BlackBerryFAQ.com, BlackBerryForums.com.
The names RIM © and BlackBerry © are registered Trademarks of Research In Motion Limited.
Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.0.1