My wife recently got a Samsung Exhibit II 4G Android phone to replace her aging Nokia E63. Migrating her contacts was accomplished fairly easily by exporting them to CSV with Nokia PC Suite and then importing them into Google Contacts. Migrating SMSes was not so trivial however. Other approachesThere are a couple methods floating around the web, but none were suitable. This one uses Gammu to retrieve the SMSes from the Nokia, and then a script to convert them to an XML format readable by SMS Backup & Restore. It turns out that Gammu doesn't work on Symbian S60v3 devices however. This script can convert SMSes exported by the MsgExport app to XML for SMS Backup & Restore, but I didn't feel like paying for it or dealing with the Ovi Store. VeryAndroid is a Windows application which can convert SMSes from Nokia PC Suite CSV format and sync them directly to an Android device, and Nokia2AndroidSMS can convert SMSes from the OVI Suite database to XML for SMS Backup & Restore. I didn't want to deal with more Windows software though, so I just decided to write my own. FormatsI already had the Nokia PC Suite installed and was using it to migrate contacts, so I decided to work with the CSV output it generates for messages. A received SMS looks like this:
and a sent SMS looks like this:
The fields are:
Fields 4 and 6 are always empty for SMSes (they are probably used for MMSes, one being the message subject). I also decided to generate XML for the SMS Backup & Restore app. The XML format looks like this:
but can be reduced down to this:
The attributes of the
The scriptI implemented a script called [nokia2android.py] in [Python] to convert one or more CSV files to this XML format.
The XML file can then be transferred to the Android device (using USB or Bluetooth) and stored in
Trackback URL for this post:http://michael.gorven.za.net/trackback/1494
|
|||||||
Hi Michael, thanks for the
Hi Michael,
thanks for the script. I have a problem, the script builds the following datastructure:
< sms address="+123456" body="Hi how are you" date="1384593960000" protocol="0" read="1" status="-1" type="1"/>
I used your script and didn't modify anything. Do you know why the order is changed?
Sadly until now SMS-Backup is not importing my data.
Greetings
Hi! You seem to be migrating
Hi! You seem to be migrating to Blackberry -- my script is for migration to Android. The Blackberry app you mentioned doesn't seem related to the Android one, and so probably doesn't support the format my script converts to.
Hi, thanks for your fast
Hi,
thanks for your fast response. I think its the same because if I do a backup on my mobile, the generated xml is the same. I thought that maybe the different order of the items may cause the problem. So maybe I should write to the coder and ask him.
thanks
The order of attributes in an
The order of attributes in an XML element is supposed to be irrelevant, so that's unlikely to be an issue.
Hi Michael, thanks for your
Hi Michael,
thanks for your reply. I was also wondering, but I asked the developer and he told me, that he uses an additional variable. I had to add 'contact_name="(Unknown)"'. So now everything went fine. Thanks for your script, it helped me a lot.
Greetings
Awesome, glad it helped!
Awesome, glad it helped!
Pingback