In an Android world, Singleton doesn’t really exist, it’s a lie.
Unless you're really picky and consider multi process, this:
Copy code
enum class RPC { Instance }
And this
Copy code
object Singleton
Are really singletons
Paul Woitaschek
03/25/2021, 8:10 PM
, but not really, once process death restoration happens, the objects annotated with @jsingle are re-created again.
If a process dies, everything dies. Who would expect to have the same objects after you reboot the system?
f
FunkyMuse
03/29/2021, 9:24 PM
It was a great feedback, i've made the changes, didn't mean what was written, also i'm still new to blogging and learning to speak my mind, nevertheless thank you for the feedback, it has helped me writing the last blogpost.