/* Deserializing cities */
 @Override
 public void onStart() {
   super.onStart();
   if (cityAdapter == null) {
     readcities();
   }
   ApplicationObject app = ((ApplicationObject) activity.getApplication());
   app.setCityAdapter(cityAdapter);
 }
 private boolean isNetworkOnline() {
   if (applicationObject.isConnectedToInternet()) return true;
   if (internetConnectionFragmentDialog != null && !internetConnectionFragmentDialog.isAdded()) {
     internetConnectionFragmentDialog.show(getFragmentManager(), "");
   }
   return false;
 }