private void checkAddCity() { if (WeatherData.getCityInfo(0).mShowType == com.moji.mjweather.data.CityWeatherInfo.ShowType.ST_NOSET) { Gl.setHandler(MainHandler); Intent intent = new Intent(this, AddCityActivity.class); Bundle bundle = new Bundle(); bundle.putInt("cityindex", 0); bundle.putBoolean("isNoDisplayLocation", true); intent.putExtras(bundle); startActivity(intent); } }