I have two Activities and I want to keep a reference of a second Activity in a first Activity. What would be the best way to keep the reference always up-to-date because as far as I understand new instance of an Activity is created each time the Activity is launching.
I have two Activities and I want to keep a reference of a second
Share
You absolutely positively do NOT want to do this. Find another solution for whatever problem you think you are trying to solve.
To clarify, this will introduce memory leaks.