I am working on a project and I want to transfer data across my application. Those data are on data model classes so sending arguments with intents made code big and hard to keep up since the classes are complex in structure.
So basically I decided to create static instances of those classes on a singleton class extending Application which helps me easily to set and get data from those objects. And it works.
Question:
I'm kinda new so I dont know if this is actually a good approach. I read some stuff here about it, but storing them on a local database as suggested is not fitting for my case. Is it any danger involved besides when Android decides to kill your application, on my approach for singleton class?
All advise and suggestions are more than welcome.
Thanks in advance.