Artificial intelligent assistant

FragmentにVolleyのRequestQueueを渡す。 ActivityFragmentActivity`Volley.NewRequestQueue()``RequestQueue`Volley`Volley.java``RequestQueue.java``Serializable``Bundle` `Volley.newRequestQueue()`

@fkm @hata

**`Application`**

* `Application``static``getInstance()``Activity``getApplication()``context``getApplicationContext()`
* `Application``getApplicationContext()``Application``this``getApplicationContext()`



##

> The recommended approach is to implement a singleton class that encapsulates RequestQueue and other Volley functionality. Another approach is to subclass Application and set up the RequestQueue in Application.onCreate(). But this approach is discouraged; a static singleton can provide the same functionality in a more modular way.

`RequestQueue``Volley``Application``Application.onCreate()``RequestQueue`

##

> Volley.newRequestQueue()

`Volley``RequestQueue`

`RequestQueue``Application Context``Application`

`Volley.newRequestQueue()``context``Application Context``Activity Context``Activity``RequestQueue`

`RequestQueue`

xcX3v84RxoQ-4GxG32940ukFUIEgYdPy c3e51aade0d388151c0c833e4133494e