I'm using two API's in my Android app. I was creating a Singleton
class as described in https://developer.android.com/training/volley/requestqueue.html and the first answer of Android Volley - How to isolate requests in another class.
However, since I'm using two different APIs, should I create two instances of the NetworkManager
or Singleton
class, after making all the variables in this class not static? Or can I just use the same instance to handle all types of requests?