public class Volley
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
private static java.lang.String |
DEFAULT_CACHE_DIR
Default on-disk cache directory.
|
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. |
private static final java.lang.String DEFAULT_CACHE_DIR
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.