title: Retrofit and Activity Lifecycle
body: <p>I want to make a REST Client with Android and I read about retrofit. When I do some requests with retrofit even if the activity is destroyed the callback is executed.</p>
  
  <p>How can I stop receiving the response after the activity is being destroyed?    </p>
  
  <pre><code>apiService.getDummieContent().enqueue(new Callback&lt;ResponseBody&gt;() {
      @Override
      public void onResponse(Call&lt;ResponseBody&gt; call, Response&lt;ResponseBody&gt; response) {
  
      }
  
      @Override
      public void onFailure(Call&lt;ResponseBody&gt; call, Throwable t) {
  
      }
  });
  </code></pre>