Immediately lock your phone if someone snatches it from your hand.
This pings the accelerometer in the background and will lock the phone if the sum of all non-gravitational forces ever exceeds the threshold (specified in terms of g, because why not).
Licensed under the MIT License by Timothy Aveni!
Available on Google Play.