title: Android display boolean from Retrofit as false ALWAYS
body: <p>In my Main Activity i execute SincronizacionDb to compare the data between SQLite and the MYSQL Server, however the json_array retrieved works fine, it's show true or false if the data it's different from the server, but in the APP, this value seems to be always false.</p>
  
  <p><strong>SincronizacionDb</strong></p>
  
  <pre><code>private void sincronizacionDB() {
      if (dbCheck(MainActivity.this, "beneficiosColaborador.db")) {
          int size = sqLiteHandler.getLastIdBeneficio();
          Call&lt;VersionDb&gt; versionDb = restManager.getApiService().checkServerDatabaseVersion(size);
          versionDb.enqueue(new Callback&lt;VersionDb&gt;() {
              @Override
              public void onResponse(Call&lt;VersionDb&gt; call, Response&lt;VersionDb&gt; response) {
                  Log.e("RESPONSE", "CALLING ON RESPONSE");
                  VersionDb version = response.body();
                  isOutdate = version.getEstado();
                  Log.i("VERSION", "RESPUESTA" + version.getEstado()); // Get the value from GSon(TRUE, FALSE) WORKS PERFECT
              }
  
              @Override
              public void onFailure(Call&lt;VersionDb&gt; call, Throwable t) {
                  Log.e("error", t.getMessage());
              }
          });
          Log.e("outdate","" + isOutdate); // ALWAYS FALSE
          if (isOutdate) {
              sqLiteHandler.deleteBeneficio();
              Log.e("Beneficios", "Se han eliminado los beneficios viejos");
              Call&lt;List&lt;Beneficios&gt;&gt; callBeneficios = restManager.getApiService().getListadoBeneficios();
              callBeneficios.enqueue(new Callback&lt;List&lt;Beneficios&gt;&gt;() {
                  @Override
                  public void onResponse(Call&lt;List&lt;Beneficios&gt;&gt; call, Response&lt;List&lt;Beneficios&gt;&gt; response) {
                      List&lt;Beneficios&gt; beneficioData = response.body();
                      sqLiteHandler.addListBeneficios(beneficioData);
                  }
  
                  @Override
                  public void onFailure(Call&lt;List&lt;Beneficios&gt;&gt; call, Throwable t) {
                      Log.e("error", t.getMessage());
                      //Toast.makeText(MainActivity.this, t.getMessage(), Toast.LENGTH_LONG).show();
                  }
              });
          }
      }else{
          Call&lt;List&lt;Beneficios&gt;&gt; callBeneficios = restManager.getApiService().getListadoBeneficios();
          callBeneficios.enqueue(new Callback&lt;List&lt;Beneficios&gt;&gt;() {
              @Override
              public void onResponse(Call&lt;List&lt;Beneficios&gt;&gt; call, Response&lt;List&lt;Beneficios&gt;&gt; response) {
                  List&lt;Beneficios&gt; beneficioData = response.body();
                  sqLiteHandler.addListBeneficios(beneficioData);
              }
  
              @Override
              public void onFailure(Call&lt;List&lt;Beneficios&gt;&gt; call, Throwable t) {
                  Log.e("error", t.getMessage());
                  //Toast.makeText(MainActivity.this, t.getMessage(), Toast.LENGTH_LONG).show();
              }
          });
      }
  }
  </code></pre>
  
  <p><a href="https://i.stack.imgur.com/VQfqs.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/VQfqs.png" alt="EXAMPLE JSON TRUE"></a></p>
  
  <p><a href="https://i.stack.imgur.com/qb2Dv.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/qb2Dv.png" alt="EXAMPLE JSON FALSE"></a></p>
  
  <p>and the Results i got in the ANDROID MONITOR</p>
  
  <pre><code>    08-11 08:39:31.417 13618-13618/com.freelance.crdzbird_dev.clarobadge D/SQLiteHandler: Fetching LAST ROW from Sqlite: 213
  08-11 08:39:31.617 13618-13618/com.freelance.crdzbird_dev.clarobadge E/outdate: false
  08-11 08:39:31.867 13618-13618/com.freelance.crdzbird_dev.clarobadge E/RESPONSE: CALLING ON RESPONSE
  08-11 08:39:31.867 13618-13618/com.freelance.crdzbird_dev.clarobadge I/VERSION: RESPUESTA true
  </code></pre>
  
  <p>Please someone explain me how to avoid this error :(</p>