A
A
argentum44222016-01-18 13:44:38
Android
argentum4422, 2016-01-18 13:44:38

How to implement validation of city name?

Hello, I am writing a small application and linking the user to his place of residence there, and I have difficulties with this.
I want a drop-down list with hints to appear at the start of data entry, there seems to be no problem with this, but where can I get a list of available cities?
at the moment I found an article on habré using vkapi for these purposes, but maybe there is an option to do it locally?
UPD: yes, through an array is not an option, I understand that. But for certain it is possible to make through a DB?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
K
Konstantin Malyarov, 2016-01-18
@Konstantin18ko

You take the entire list of cities and drive it into an array. Just think about how much this application will take up space. And nah, does anyone need this?

G
geron, 2016-01-18
@geronix

Google Places API for Android I think this should help.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question