I'm developing an android app that gets some data from my API when starts, and it must keep this data during all lifetime. This data may be accessible from any component in the application, so I had always resolved that with a singleton initialized on my Application class. However, singletons are difficult to test so I'm thinking about an alternative. The data shouldn't be stored in shared preferences, as they will be get each time the application opens so, what would you do? Does a singleton is the best option here?
Thanks in advance