public class Volley extends Object
Constructor and Description |
---|
Volley() |
Modifier and Type | Method and Description |
---|---|
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. |
public static RequestQueue newRequestQueue(Context context, HttpStack stack)
RequestQueue.start()
on it.context
- A Context
to use for creating the cache dir.stack
- An HttpStack
to use for the network, or null for default.RequestQueue
instance.public static RequestQueue newRequestQueue(Context context)
RequestQueue.start()
on it.context
- A Context
to use for creating the cache dir.RequestQueue
instance.