You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
TwistedEquations edited this page Jan 27, 2014
·
3 revisions
Basic Usage (RequestQueue)
Have your application class extend the TwistVolleyApplication
public class MyApplication extends TwistVolleyApplication {
@Override
public void onCreate() {
//Your on code here
super.onCreate();
}
}
Get the RequestQueue using the TwistVolley Helper method
RequestQueue requestQueue = TwistVolley.getRequestQueueFromApplication(this);
Done! Now you can send any Volley request through the queue as before.
TwistImageLoader
Get a reference to the TwistImageLoader from the TwistVolleyApplication
TwistImageLoader imageLoader = TwistVolley.getTwistImageLoaderFromApplication(this);