I want to develop a small task in Android in Java to detect location(Latitude & Longitude) even if GPS and Internet are off. And set alarm for every hour that upload that location when the internet is on to the server. I already have an API. Just want to implement a java (android) to get location when Internet and GPS are off.
or either start GPS in the background when I need to get location and off GPS again.