I realize there is a very interesting technique, to get Context in Android in an easy way.
Static way to get 'Context' on Android?
However, I also came across
Android : Static variable null on low memory
Is it possible that the static variable used to hold context, become null during low memory?
No.
The process may be terminated to free up memory, which has the effect of making static variables
nullwhen your code is next run, in its new process.