I have an application that keeps some complex data in memory between activities.
As for now I use a Singleton
class that use SharedPreferences
in getters and setters.
What I want: As long as my application is live and showing in the recent apps, I want a class to never get released or find a way to achieve this another way without consequences.
- So I was wondering, is a better way available to me?
- Would a Service be better?
- If so, should I start and/or bind it?