SendMyLocation is a project mainly written in Java, it's free.
Android app that sends your current location via SMS.