I've recently been looking at options available to me for persisting data across Activities
. I've searched a bit online and only found a few methods that other people seem to use. Some of them are -
- Intent
- Singleton class
- Disk
Application
What about using a Service
? I haven't found anywhere where the use of Service for data persistence across Activities is mentioned. From what I've experienced with Android Service, I'm pretty sure that it can be used for this purpose. Is there any reason why others, as far as I know, do not use Service for data persistence?