Normally I can bluetooth all my contacts from one phone into another. Not possible when your migrating from a P1i to HTC Hero. Try as I may, the contact(s) would get rejected. I didnt really fancy moving all 300+ contacts manually, so embarked on a google search.... Looking for some fantastic tool that would do the job for me.... not happening!
In the end I came across some good ideas from a couple of posts so did the following, which worked brilliantly!
1) In the P1i, open the Contacts app, then hit More. In the menu, scroll down to Connections manager, and expand the sub-menu. From here select Backup option - this saves a Contacts.vcf to your memory card.
2) Copy the vcf file from step 1, onto your PC desktop, either by connecting the phone or reading the memory card via a reader with adapter.
3) Go to your Gmail account, and click the contacts link in the left hand side menu bar. Select Import from the top right. Choose your vcf file.
4) Enjoy! - you only need to wait a couple of minutes for the refresh to occur on your Hero...
A bit manual, but this is the simplest and quickest way I found.
Peace.