在我的web appliaction获取安卓GPS位置 [英] Get android GPS location in my web appliaction

查看:97
本文介绍了在我的web appliaction获取安卓GPS位置的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我用java弹簧技术的Web应用程序开发。现在我想将其扩展到Android设备,需要我来获得Android设备的当前位置。可有人指导我如何向前走在这条?

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?

按我的理解Web应用程序将不得不通知发送给机器人,然后Android客户端将发送邮件与纬度和长期的信息Web应用程序。

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.

但我怎么通知发送到Android客户端在这里?

But how do I send notification to the android client here?

推荐答案

您可以使用 Android云端到设备消息框架,向服务器请求发送到Android手机。检查联系为好。此外,回答下面的问题可能会有所帮助你:<一href=\"http://stackoverflow.com/questions/9390257/two-way-communication-between-android-and-server\">Two Android和服务器之间双向通信<一个href=\"http://stackoverflow.com/questions/2775628/android-how-to-periodically-send-location-to-a-server\">Android:如何周期性地发送位置服务器。

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.

这篇关于在我的web appliaction获取安卓GPS位置的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆