BlackBerry Forums Support Community
              

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

Please Login to Remove!

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:
Raven18xxx9633;=Ravenxxx9633;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?
Offline  
Closed Thread



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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


Vintage MAC Knife Japan 4.75

Vintage MAC Knife Japan 4.75" Folding Lock Blade Knife Chef Pocket Knife Utility

$224.99



Vintage MAC Tools UVEX Adjustable Safety Glasses Motorcycle Mechanic Lawnmower picture

Vintage MAC Tools UVEX Adjustable Safety Glasses Motorcycle Mechanic Lawnmower

$55.24



Vintage Mac Tools Black Frame Mirror Lens Safety Glasses USA picture

Vintage Mac Tools Black Frame Mirror Lens Safety Glasses USA

$31.88



Vintage Mac Tools Central 6628 Stainless Steel Dial Caliper, 0-6

Vintage Mac Tools Central 6628 Stainless Steel Dial Caliper, 0-6"/0-150mm Range

$75.00



Vintage VTG A. W. Mack 122387 Large Industrial Fuse Puller 100 Amp - 600 Amp picture

Vintage VTG A. W. Mack 122387 Large Industrial Fuse Puller 100 Amp - 600 Amp

$104.99



Vintage Catalog 1985 MAC Tools Product MT86CAT Washington Court House Ohio picture

Vintage Catalog 1985 MAC Tools Product MT86CAT Washington Court House Ohio

$19.99







Copyright © 2004-2016 BlackBerryForums.com.
The names RIM © and BlackBerry © are registered Trademarks of BlackBerry Inc.