title: Retrofit: passing multiple GET parameter
body: <p>I'm using retrofit to make an API call to validate login credentials from server  in android application.</p>
  
  <p>for Example, this is my url : <a href="http://example.com/park/app/login.php?username=xyz&amp;password=1234&amp;user_type=1&amp;device_id=12345" rel="nofollow noreferrer">http://example.com/park/app/login.php?username=xyz&amp;password=1234&amp;user_type=1&amp;device_id=12345</a></p>
  
  <p>I have created Utils class which has URl and constant stuff.</p>
  
  <pre><code>public class Utils {
  public static final String user_type = "1";
  public static final String device_id = "12345";
  private static final String LOGIN_URL = "http://example.com/";
  
  public static  ApiServices getServices() {
      return RetroFitClient.getClient(LOGIN_URL).create(ApiServices.class);
  }
  
  public class RetroFitClient {
  private static Retrofit retroFit = null;
  
  public static Retrofit getClient(String url) {
      return (retroFit == null) ? (new Retrofit.Builder().baseUrl(url)
                      .addConverterFactory(GsonConverterFactory
                              .create()).build()) : retroFit;
  }
  </code></pre>
  
  <p>}</p>
  
  <p>Here is Interface:</p>
  
  <pre><code>public interface ApiServices {
  @GET("park/app/login.php?")
  Call&lt;Result&gt; loginUser
          (@Query("username") String username,
           @Query("password") String passwoord,
           @Query("user_type") String user_type,
           @Query("device_id") String device_id);
  </code></pre>
  
  <p>}</p>
  
  <p>When i call the service </p>
  
  <pre><code> private void doLogin(String name, String passwoord, String user_type, String deviceid) {
      Call&lt;Result&gt; call = apiServices.loginUser(name, passwoord, user_type, deviceid);
      call.enqueue(new Callback&lt;Result&gt;() {
          @Override
          public void onResponse(Call&lt;Result&gt; call, Response&lt;Result&gt; response) {
              Log.e("OnResponse", response.body().getMessage()+" status "+response.body().isStatus());
              if (response.body().isStatus()) {
                  Intent intent = new Intent(LoginActivity.this, MainActivity.class);
                  startActivity(intent);
              } else {
                  Toast.makeText(LoginActivity.this, "UserName or Password is incorrect", Toast.LENGTH_SHORT).show();
              }
          }
  </code></pre>
  
  <p>I receive the status as false</p>
  
  <pre><code>04-25 17:13:20.461 31947-32086/com.example.innobles.velparked D/dalvikvm: VFY: replacing opcode 0x71 at 0x000a
  04-25 17:13:20.751 31947-31947/com.example.innobles.velparked E/OnResponse: Invalid User. status false
  </code></pre>
  
  <p>where M i doing wrong?
   any Thoughts? </p>