title: How to know when a Retrofit call is finished
body: <p>Is there a way of know when my Retrofit call has finished it's duty? I like know when all the data is received so the code can move on, like starting another activity or use data from the first call to make a second?</p>
  
  <p>Ps.: I'm using an asynchronous request (.enqueue).</p>
  
  <p><strong>Edit:</strong></p>
  
  <pre><code>getContact(){ 
  //Get a contact List from the server    
      Call&lt;List&lt;ModelContact&gt;&gt; callM =  contactInterface.createRContact(listContact);
      callM.enqueue(new Callback&lt;List&lt;ModelContact&gt;&gt;() {
      @Override
  
      public void onResponse(Response&lt;List&lt;ModelContact&gt;&gt; response, Retrofit retrofit) {
          // Fetch the List from Response and save it on the local database
          }
  
      @Override
          public void onFailure(Throwable t) {
              Log.i("TAG", "Error: " + t.getMessage());
          }
      });
  
      //Gets a object containing some configurations
      Call&lt;Configs&gt; callC = contactInterface.getConfigs(Configs);
      callC.enqueue(new Callback&lt;Configs&gt;() {
      @Override
  
      public void onResponse(Response&lt;Configs&gt; response, Retrofit retrofit) {
          // Fetch the Configs object and save it on the database
          }
  
      @Override
          public void onFailure(Throwable t) {
              Log.i("TAG", "Error: " + t.getMessage());
          }
      });
  
      //Here I need to start a new activity after the calls
      Intent loginact = new Intent(TokenActivity.this, LoginActivity.class);
             startActivity(loginact);
  
  
  }
  </code></pre>