Beispiel #1
0
        public void run() {
          SharedPreferences prefs = PreferenceManager.getDefaultSharedPreferences(getBaseContext());
          campusJson =
              DBCommunicator.getRegions(
                  prefs.getInt("location_lat", 0) + "",
                  prefs.getInt("location_lon", 0) + "",
                  getBaseContext());

          if (campusJson.equals(getString(R.string.timeout))) {
            failureHandler.sendEmptyMessage(0);
          } else {
            JsonParser.parseRegionJson(campusJson, getBaseContext());
            handler2.sendEmptyMessage(0);
          }
        }