I have web application developed using java spring technology. Now I want to extend it to android devices which requires me to get the current location of the android devices. Can someone guide me on how to go forward on this?
As per my understanding the web application will have to send a notification to the android and then the android client will have to send a message to the web application with the lat and long information.
But how do I send notification to the android client here?
You may use Android Cloud to Device Messaging Framework to send the request from server to android phone. Check this link as well. Also, the answers to following questions may be helpful you: Two way communication between android and Server and Android: How to periodically send location to a server.