title: Android Retrofit no response
body: <p>HI I'm just new to retrofit service and followed this tutorial <a href="https://www.simplifiedcoding.net/retrofit-android-tutorial-to-get-json-from-server/">https://www.simplifiedcoding.net/retrofit-android-tutorial-to-get-json-from-server/</a> it works well and wanted to create my very own so i used a new json web 
  <a href="http://api.androidhive.info/contacts/">http://api.androidhive.info/contacts/</a> that contains</p>
  
  <pre><code>{
  "contacts": [
      {
              "id": "c200",
              "name": "Ravi Tamada",
              "email": "ravi@gmail.com",
              "address": "xx-xx-xxxx,x - street, x - country",
              "gender" : "male",
              "phone": {
                  "mobile": "+91 0000000000",
                  "home": "00 000000",
                  "office": "00 000000"
              }
      },
      {
              "id": "c201",
              "name": "Johnny Depp",
              "email": "johnny_depp@gmail.com",
              "address": "xx-xx-xxxx,x - street, x - country",
              "gender" : "male",
              "phone": {
                  "mobile": "+91 0000000000",
                  "home": "00 000000",
                  "office": "00 000000"
              }
      },
      {
              "id": "c202",
              "name": "Leonardo Dicaprio",
              "email": "leonardo_dicaprio@gmail.com",
              "address": "xx-xx-xxxx,x - street, x - country",
              "gender" : "male",
              "phone": {
                  "mobile": "+91 0000000000",
                  "home": "00 000000",
                  "office": "00 000000"
              }
      },
      {
              "id": "c203",
              "name": "John Wayne",
              "email": "john_wayne@gmail.com",
              "address": "xx-xx-xxxx,x - street, x - country",
              "gender" : "male",
              "phone": {
                  "mobile": "+91 0000000000",
                  "home": "00 000000",
                  "office": "00 000000"
              }
      },
      {
              "id": "c204",
              "name": "Angelina Jolie",
              "email": "angelina_jolie@gmail.com",
              "address": "xx-xx-xxxx,x - street, x - country",
              "gender" : "female",
              "phone": {
                  "mobile": "+91 0000000000",
                  "home": "00 000000",
                  "office": "00 000000"
              }
      },
      {
              "id": "c205",
              "name": "Dido",
              "email": "dido@gmail.com",
              "address": "xx-xx-xxxx,x - street, x - country",
              "gender" : "female",
              "phone": {
                  "mobile": "+91 0000000000",
                  "home": "00 000000",
                  "office": "00 000000"
              }
      },
      {
              "id": "c206",
              "name": "Adele",
              "email": "adele@gmail.com",
              "address": "xx-xx-xxxx,x - street, x - country",
              "gender" : "female",
              "phone": {
                  "mobile": "+91 0000000000",
                  "home": "00 000000",
                  "office": "00 000000"
              }
      },
      {
              "id": "c207",
              "name": "Hugh Jackman",
              "email": "hugh_jackman@gmail.com",
              "address": "xx-xx-xxxx,x - street, x - country",
              "gender" : "male",
              "phone": {
                  "mobile": "+91 0000000000",
                  "home": "00 000000",
                  "office": "00 000000"
              }
      },
      {
              "id": "c208",
              "name": "Will Smith",
              "email": "will_smith@gmail.com",
              "address": "xx-xx-xxxx,x - street, x - country",
              "gender" : "male",
              "phone": {
                  "mobile": "+91 0000000000",
                  "home": "00 000000",
                  "office": "00 000000"
              }
      },
      {
              "id": "c209",
              "name": "Clint Eastwood",
              "email": "clint_eastwood@gmail.com",
              "address": "xx-xx-xxxx,x - street, x - country",
              "gender" : "male",
              "phone": {
                  "mobile": "+91 0000000000",
                  "home": "00 000000",
                  "office": "00 000000"
              }
      },
      {
              "id": "c2010",
              "name": "Barack Obama",
              "email": "barack_obama@gmail.com",
              "address": "xx-xx-xxxx,x - street, x - country",
              "gender" : "male",
              "phone": {
                  "mobile": "+91 0000000000",
                  "home": "00 000000",
                  "office": "00 000000"
              }
      },
      {
              "id": "c2011",
              "name": "Kate Winslet",
              "email": "kate_winslet@gmail.com",
              "address": "xx-xx-xxxx,x - street, x - country",
              "gender" : "female",
              "phone": {
                  "mobile": "+91 0000000000",
                  "home": "00 000000",
                  "office": "00 000000"
              }
      },
      {
              "id": "c2012",
              "name": "Eminem",
              "email": "eminem@gmail.com",
              "address": "xx-xx-xxxx,x - street, x - country",
              "gender" : "male",
              "phone": {
                  "mobile": "+91 0000000000",
                  "home": "00 000000",
                  "office": "00 000000"
              }
      }
  ]
  </code></pre>
  
  <p>I implemented my own interface ContactAPI.java</p>
  
  <pre><code>public interface ContactsAPI {
  @GET("/contacts/")
  public void getContacts(Callback&lt;List&lt;Contact&gt;&gt; response);}
  </code></pre>
  
  <p>And Implemented model class like this Contact.java</p>
  
  <pre><code>public class Contact {
  
  @SerializedName("id")
  @Expose
  private String id;
  @SerializedName("name")
  @Expose
  private String name;
  @SerializedName("email")
  @Expose
  private String email;
  @SerializedName("address")
  @Expose
  private String address;
  @SerializedName("gender")
  @Expose
  private String gender;
  public String getId() {return id;}
  public void setId(String id) {this.id = id;}
  public String getName() {return name;}
  public void setName(String name) {this.name = name;}
  public String getEmail() {return email;}
  public void setEmail(String email) {this.email = email;}
  public String getAddress() {return address;}
  public void setAddress(String address) {this.address = address;}
  public String getGender() {return gender;}
  public void setGender(String gender) {this.gender = gender;}}
  </code></pre>
  
  <p>then finally implemented my Restadapter in MainActivity.class</p>
  
  <pre><code>  public static final String ROOT_URL = "http://api.androidhive.info";
    private ListView listView;
    private List&lt;Contact&gt; contacts;
     RestAdapter adapter = new RestAdapter.Builder().setEndpoint(ROOT_URL).build();
      ContactsAPI api = adapter.create(ContactsAPI.class);
  
      api.getContacts(new Callback&lt;List&lt;Contact&gt;&gt;() {
          @Override
          public void success(List&lt;Contact&gt; list, Response response) {
              Toast.makeText(MainActivity.this,list.toString(),Toast.LENGTH_SHORT).show();
              showList();
          }
  
          @Override
          public void failure(RetrofitError error) {
              //you can handle the errors here
              Toast.makeText(MainActivity.this,"Error Occured:"+error.toString(),Toast.LENGTH_SHORT).show();
          }
      });
  </code></pre>
  
  <p>The App runs smoothly but after a 4 seconds delay it will promt an error which is public void failure(RetrofitError error) i dont know what i'm missing i checked my code and can't find anything wrong pls help me thanks in advance.</p>