As far as I've seen, the built in APIs for getting at SMS data aren't very helpful.  Different carriers install different SMS software on each phone, and they vary between devices as well.  I've had to reverse engineer a number of different SMS database formats for my application, and I'm only targeting the Treo 650 right now.

If anyone has had a better experience, I'd also be interested in hearing about it.

Cheers,
Gary

Michal Seliga wrote:
please..someone... builtin phone application shows correct number so it must be
possible somehow... i just can't find out how

Michal Seliga wrote:
  
hi

on treo650 i need to detect how many sms messages are in inbox

when i use PhoneLib api to open database with sms messages for me (PhnLibGetDBRef) it opens database "SMS Messages2" of type DATA and creator SMS2 which is always empty

i already found that messages are in fact stored in database called "Messages Database" with type MsDb and creator MsSt. 

is there any 'correct' way to get this information or must i open this database i found myself? i already found that there is a lot of records and not all of them are sms messages so i don't know how to get correct number from there. is this format documented somewhere?

i also tried to use approach which was recommended for mail and sms messages (to use pmNotifyGetNewMsgCountFromHelper), it works for mail, i can't test it for mms at the moment, but for sms it returns always 0 so again no luck here

i will be glad for any hint, because i am stuck with this... thanks in advance

    

  

--
For information on using the PalmSource Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/

Reply via email to