0

I want to make volley calls when the app is in the background: what is the best way?

I mean is it safe to just call addToRequestQueue() directly or it has to be called through service

MySingleton.getInstance(this).addToRequestQueue(jsObjRequest);

T_C
  • 3,148
  • 5
  • 26
  • 46

1 Answers1

1

Have you considered using GoogleSyncFramework for background data syncing/fetching.

You can use background syncing and you can use volley for request. For your case calling it in background MySingleton.getInstance(this).addToRequestQueue(jsObjRequest); is safe.

Kenan Begić
  • 1,228
  • 11
  • 21