0

Just started learning loopj. how to pass long {id} on url as string?

I have a method in client like this,

  public static void getAllByIdForSpinner(Context context, String url, Header[] headers, 
        RequestParams params, AsyncHttpResponseHandler responseHandler) {
                     client.get(context, getAbsoluteUrl(url), headers, params, responseHandler);
                    }

and in mainactivity

 myRestClient.getAllByIdForSpinner(MainActivity.this, "ExampleRestService/product/" +id, 
                headers.toArray(new Header[headers.size()]), null, new JsonHttpResponseHandler() 

I tried few things. But nothing worked for this method.

user3785322
  • 153
  • 1
  • 6
  • 15

0 Answers0