com.android.volley.toolbox
Class Volley

java.lang.Object
  extended by com.android.volley.toolbox.Volley

public class Volley
extends Object


Constructor Summary
Volley()
           
 
Method Summary
static RequestQueue newRequestQueue(Context context)
          Creates a default instance of the worker pool and calls RequestQueue.start() on it.
static RequestQueue newRequestQueue(Context context, HttpStack stack)
          Creates a default instance of the worker pool and calls RequestQueue.start() on it.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Volley

public Volley()
Method Detail

newRequestQueue

public static RequestQueue newRequestQueue(Context context,
                                           HttpStack stack)
Creates a default instance of the worker pool and calls RequestQueue.start() on it.

Parameters:
context - A Context to use for creating the cache dir.
stack - An HttpStack to use for the network, or null for default.
Returns:
A started RequestQueue instance.

newRequestQueue

public static RequestQueue newRequestQueue(Context context)
Creates a default instance of the worker pool and calls RequestQueue.start() on it.

Parameters:
context - A Context to use for creating the cache dir.
Returns:
A started RequestQueue instance.