BuddyLocator is a free program where you can see what your friends are up to. You can locate both them and yourself on the map. And you can see their status just like on any messenger.
-JSR 179 (Location API for J2ME)
-JSR 82 (Java APIs for Bluetooth)