Traditional Culture Encyclopedia - Weather forecast - How to instantiate android weather forecast control provinces and cities

How to instantiate android weather forecast control provinces and cities

Load weather forecast data with Intent. The code is as follows:

Intention? =? New? Intent(LoadUI.this,loaddataservice . class);

Bound? Bound? =? New? bundle(); ? //? Create weather content

bundle.putString("city ",weather util . getdefaultcity(load ui . this));

Bundle.putBoolean("check ",false); //? Don't write content

intent . put extras(bundle); ? //? Closed weather

load ui . this . startservice(load ui . this . intent);

The LoadDataService class is a service class for loading weather forecast data. This class needs to do the following:

City? =? URLEncoder.encode (city, "UTF-8");