简体   繁体   English

安卓位置跟踪

[英]Android location tracking

I'm a beginner in android development.我是android开发的初学者。 I need some idea about how can I make an app which can track a phone's live location.我需要一些关于如何制作可以跟踪手机实时位置的应用程序的想法。 I want to use the same app on 2 devices and both of them should be able to track each other.我想在 2 台设备上使用相同的应用程序,并且它们都应该能够相互跟踪。 Can someone please help?有人可以帮忙吗?

the good starting point is https://developer.android.com/training/location where you can find examples and best practices.好的起点是https://developer.android.com/training/location ,您可以在其中找到示例和最佳实践。 Depending on your application please consider a suitable strategy (background tracking, geofencing, and impact on the battery).根据您的应用,请考虑合适的策略(背景跟踪、地理围栏和对电池的影响)。 The second thing you have to solve is how to exchange/share information between devices.您必须解决的第二件事是如何在设备之间交换/共享信息。 There are ways how to deal with it.有办法如何处理它。 For example, google API, web socket or something else.例如,谷歌 API、网络套接字或其他东西。 Sorry for the general answer.对不起,一般的答案。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM