title: Retrofit android not working and has no error
body: <p>I just implemented the retrofit android library for rest api call but it is not working and has no  error. My code is </p>
  
  <p>ApiInterface.java</p>
  
  <pre><code>public interface ApiInterface {
      @POST("url")
      void getLoginResponse(@Field("username") String username , @Field("password") String password,
                            @Field("clientId") String clientId , Callback&lt;LoginResponse&gt; cb);
  }
  </code></pre>
  
  <p>RestClient.java</p>
  
  <pre><code>public class RestClient {
  
      private static ApiInterface REST_CLIENT;
      private static String BASE_URL = "base_url";
      static {
          setupRestClient();
      }
  
      private RestClient() {}
  
      public static ApiInterface get() {
          return REST_CLIENT;
      }
  
      private static void setupRestClient() {
          RestAdapter restAdapter = new RestAdapter.Builder()
                  .setEndpoint(BASE_URL)
                  .build();
          REST_CLIENT = restAdapter.create(ApiInterface.class);
      }
  }
  </code></pre>
  
  <p>and in activity i call</p>
  
  <pre><code>RestClient.get().getLoginResponse(usernameText, passwordText, clientId, new Callback&lt;LoginResponse&gt;() {
                          @Override
                          public void success(LoginResponse loginResponse, Response response) {
                              Toast.makeText(getApplicationContext(), loginResponse.getToken(), Toast.LENGTH_SHORT).show();
                          }
  
                          @Override
                          public void failure(RetrofitError error) {
  
                          }
                      });
  </code></pre>
  
  <p>And in AndroidManifest i set the permission for internet.</p>