I don’t understand where the Refrofit adapters and API classes in Android should be supported? Should I use the Application or Singleton class to support the adapter? What about API classes?
RestAdapter myRestAdapter; // where should I keep this guy?
MyAPI mApi = myRestAdapter.create(MyAPI.class); // and how about this guy?
I have several different api, such as MyApi1, MyApi2, which are called inside fragments at different points in the application.
thank
source
share