I have some troubles finding some informations about Volley and the response.Listener.
Basically I have an operation to ask data to my backend, call is made throughout Volley in background (Handled by Volley itself) meanwhile it call the onResponse on the main thread.
Do I need to do a runnable by myself to process theses datas in background or there is a way to force the onResponse to run in background ?
Thank you.
EDIT :
Here is the code I'm running then.
private Response.Listener<String> volleyResp = new Response.Listener<String>() {
@override
public void onResponse(final String jsonResp) {
new Thread() {
public void run() {
// Do something ... Insert in DB for example.
}
}.start();
}