changed activity recognition and getting location.