public void loadCitiesDb(Context context) { mCitiesDb.clear(); // Read the cities DB so that the names and timezones will be taken from the DB // and not from the selected list so that change of locale or changes in the DB will // be reflected. CityObj[] cities = Utils.loadCitiesDataBase(context); if (cities != null) { for (int i = 0; i < cities.length; i++) { mCitiesDb.put(cities[i].mCityId, cities[i]); } } }