I've successfully developed a tracking app which logs the location of the mobile to a web server. But I have to keep active the location & data services all the time. Is there a way to enable and disable these services automatically, only when it requires.
Target version: Android 4.4.4 (KitKat)