Android的:如何获取用户当前位置名称在最原始的手机做它的方式吗? (没有互联网或GPS) [英] Android:How to get current location NAME of user in the way a most primitive phone does it? (without internet or gps)
问题描述
有关于如何得到位置的经度和纬度,而无需使用GPS或互联网很多的问题和答案在堆栈溢出。但我想以这种方式来获得位置的的名称的(如城市名)。在主屏幕上最原始的非智能手机(即诺基亚1110)展会地点名称。这些手机没有上网或GPS。所以应该有一种方法只是信号塔的细节,以获得位置名称,在android系统了。如何做到这一点?
There are many questions and answers in stack overflow on how to get the location latitude and longitude without using gps or internet. But I want to get the location's name (such as city name) in that way. Most primitive non-smart mobile phones (i.e Nokia 1110) show location name on the home screen. Those phones doesn't have internet or gps. So there should be a way to get the location name just by signal tower details, in android too. How to do this?
推荐答案
由于API-17,引入了 CellIdentity *
类:
Since API-17, CellIdentity*
classes were introduced:
- 的https://developer.android.com/reference/android/telephony/CellIdentityGsm.html
- 的https://developer.android.com/reference/android/telephony/CellIdentityLte.html
- https://developer.android.com/reference/android/telephony/ CellIdentityWcdma.html
- 16位的位置区code
- 3位移动国家code
- 2或3位数的移动网络code
- 纬度
- 经度
- NETWORKID
- 的systenId
这是我能想到的。我希望更好的工具存在。
That is all I can think of. I hope better tools exists.
这篇关于Android的:如何获取用户当前位置名称在最原始的手机做它的方式吗? (没有互联网或GPS)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!