Android: How to get the current location of the user NAME as the most primitive phone does? (no internet or gps)

Stack Overflow has many questions and answers about how to get latitude and longitude of location without using gps or internet. But I want to get the location name (like city name) this way. Most primitive non-smart mobile phones (eg Nokia 1110) show the name of the location on the home screen. These phones do not have internet or gps. So there should be a way to get the location name just from the signal tower details, in android too. How to do it?

+3


source to share


2 answers


Since the API-17 classes have been introduced CellIdentity*

:



That's all I can think of. I hope better tools exist.

+2


source


I can give you a simple soul when using a GPS signal:

Just download the file with the world's 15,000 most populated cities from geonames.org. Import this into the square tree spatial index and find the next city in its place using the square tree index.



To check if a solution is possible, you can first leave the square tree index and do a brute force search.

-1


source







All Articles