Android上如何在用户之间实时共享数据?
我是另一个导航应用程序的作者。我的用户问我是否可以在动态定义的用户组之间实现位置共享。这意味着它不应该像谷歌纬度中的朋友那样,而应该像一些在开放区域执行短期任务的人员。这就是为什么我不想使用那些类似社区的位置共享服务(也许我错了?),也不想自己支持这样的服务。
我正在考虑一些更通用和方便的通信方式,例如短信或电子邮件。但我不确定我是否可以在 Android 中透明地使用它们。
因此,我将非常感谢任何提示、线索和起点。
PS 我所说的“实时”肯定是指伪真实,例如每分钟 5-30 次。
I am the author of a yet another one navigation application. My users ask me if I can implement location sharing among dynamically defined set of users. It means that it should be not like friends in Google Latitude but like some crew performing some short term task in open area. That's why I do not want to use those community-like location sharing services (may be I'm wrong?) nor I want to support such service by myself.
I'm thinking of some more general and convenient way of communication like SMS or e-mail. But I'm not sure that I can use them transparently in Android.
So I will highly appreciate any hints, clues and starting points.
P.S. By 'real time' I surely mean pseudo-real like 5-30 times per minute.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
短信和电子邮件真的更方便吗?严重地?
为此,请创建一个服务器,让手机将其位置更新到服务器,并向服务器请求其他用户的位置并将其显示在地图上。构建用于将电话设置为组的自定义解决方案,并仅将适当的信息发送到适当的组。
Sms or email is really more convenient? Seriously?
To do this, create a server, have the phones update their locations to the server and request locations of other users from the server and display them on a map. Build a custom solution for setting phones to groups and send only the appropriate information to the appropriate group.
我必须同意法尔马里的观点。虽然每分钟发送短信或电子邮件 5 到 30 次是可能且相对容易的,但也有很多缺点。以一个人的成本为例。您看过 C2DM 框架 http://code.google.com/android/c2dm/索引.html。
I have to agree with Falmarri. Although it both possible and relative easy to achieve sending a sms or email 5 to 30 times per minute has many downfalls. Cost for one for example. Have you looked at the C2DM Framework http://code.google.com/android/c2dm/index.html.