Back to project page Instabackground.
The source code is released under:
Apache License
If you think the Android project Instabackground listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.
package es.expilu.instabackground.net; /* w w w . j a v a2 s . co m*/ import com.android.volley.Response.ErrorListener; import com.android.volley.Response.Listener; import com.android.volley.VolleyError; import es.expilu.instabackground.model.Envelope; import es.expilu.instabackground.net.event.PopularRequestError; import es.expilu.instabackground.net.event.PopularRequestOk; import es.expilu.instabackground.util.Globals; public class PopularRequest extends GsonRequest<Envelope> { public PopularRequest() { super(Method.GET, String.format(InstagramApi.METHOD_POPULAR, InstagramClient.CLIENT_ID), Envelope.class, null, new Listener<Envelope>() { @Override public void onResponse(Envelope response) { Globals.getInstance().eventBus.post(new PopularRequestOk(response)); } }, new ErrorListener() { @Override public void onErrorResponse(VolleyError error) { Globals.getInstance().eventBus.post(new PopularRequestError(error)); } }); } }