How to add all possible cities to EditText, that is, to make a searchbar for all cities?

Closed due to the fact that the issue is too general for the participants Vladyslav Matviienko , aleksandr barakin , user194374, Kromster , Mr. Black Aug 1 '16 at 17:34 .

Please correct the question so that it describes the specific problem with sufficient detail to determine the appropriate answer. Do not ask a few questions at once. See “How to ask a good question?” For clarification. If the question can be reformulated according to the rules set out in the certificate , edit it .

  • first you just need to find a list of all cities. And then - add a list of lines to the searchbar. So break your task into 2 parts, and solve them separately. - Vladyslav Matviienko
  • Here everything is well described androidhub.intel.com/en/posts/nglauber/Android_Search.html . only now you need to take your cities - Senior Pomidor
  • @Senior Automator thanks! - user200355
  • @metalurgus good) - user200355

2 answers 2

everything is well described here

only you need to take your cities instead of https://dl.dropboxusercontent.com/u/6802536/cidades.json

Create your object with lists of all cities and specify access to it.

    There is a very good script with many examples and great features.

    https://ubilabs.imtqy.com/geocomplete/

    Data is taken from Google Maps.

    • Like the author on Java wants examples - Senior Pomidor
    • Similarly, did not look at the tags. - Alexey Giryayev