See my blog article titled Elliptic Curve Cryptography: computing shared key
Elliptic Key Cryptography Demo - Android