when I declare and initialize a variable as static in my main activity and the activity gets destroyed. Can I still access the content of the variable?
For example t
A static variable is associated with the lifecycle of class. Once an activity is destroyed than that static variable will also be cleaned up.
If you still want to access that variable you have 2 options:-