如何GPS和放大器;地理定位适用于Android设备 [英] How GPS & Geo Location works for Android Devices

查看:116
本文介绍了如何GPS和放大器;地理定位适用于Android设备的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我要开发一个应用程序,我需要找回用户到应用程序的当前位置,以便为特定的位置获取数据。在开始进入这个之前,我想了解GPS系统如何工作的Andr​​oid和放大器;什么是带WiFi的关系。谁能告诉我关于GPS和放完整的解释;地理code在Android设备及放大器的参考;建议我怎么需要启动。

I am going to develop an Application where i need to retrieve the current Location of the User into Application in order to fetch data for specific location. Before starting into this I would like to learn how a GPS system works for Android & what is the relation with WiFi . Can anybody tell me complete explanation about GPS & Geo Code in reference of Android devices & suggest me how I need to start with.

推荐答案

Android已经获得用户的当前位置的三种方式。

Android has three ways of getting the current location of the user.


  1. 通过Wi-Fi

  2. 通过你的networkprovider。

  3. 通过对Android设备的GPS芯片。

在对这些最准确的方法是从全球定位系统获得的坐标。这将让你的准确位置在北纬多头,但它也将最常使用的电池。这通常是在导航地图注重精度的使用。

Out of these the most accurate method is to get the co-ordinates from GPS. This will get your accurate location in lat longs but it will also use most of the battery. This is generally used in navigation maps where accuracy is Important.

,两种方法的其余部分是不太准确的,但也可以使用更少的电池。如果当前位置的准确性并不重要,您可以使用这些方法的后two.All都可以通过的LocationManager的android

the rest of the two methods are less accurate but also use less battery. If the accuracy of current location is not that important you can use the later two.All of these methods are available through LocationManager of android.

编辑:

        // To get Updates From GPS Use
    mlocManager.requestLocationUpdates(LocationManager.GPS_PROVIDER, 0, 0,
            currentlocation); 

       //To get Updates From network Use
    mlocManager.requestLocationUpdates(LocationManager.NETWORK_PROVIDER, 0, 0,
            currentlocation);

这篇关于如何GPS和放大器;地理定位适用于Android设备的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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