This example show how to use Activity Recognition
and Location Client both same time.
This also useful distance calcuatio.