I need to transfer contacts and SMS history from a Samsung SGH-X830 to an iPhone 3G. Preferably, I would like to preserve date/time for SMS messages. How can I achieve this?
As far as I know, the SMS history is stored on the carriers servers, not your phone. So if you stay with the same carrier, you might be able to migrate them when you get the new phone.
The iPhone SMS DB is sqlite3. If your iPhone is jailbroken, you can get and view the DB on the phone itself (install terminal) or on your desktop:
I don't have an Android and cannot tell you how to get the SMS DB off of Android, but you ought to be able to do something similar. You'll need to reverse engineer the formats of the two, write a converter, and convert your Android SMS DB to your iPhone SMS DB.
Here are some instructions on how to migrate your SMS in the reverse direction: http://android.riteshsahu.com/tips/import-sms-iphone-android