The `GetCurrentLocation` constructor needs activity. We cannot provide activity variable when using service. Really appreciate if you can provide some snippet of how we can use this code in service (java) .