The following schema has been touted as the way to get application context from anywhere within my android app. But sometimes doing MyApp.getContext() returns n
MyApp.getContext()
Currently, you have not initialized instance and by default it's value would now be set to null. You need to assign it a value before you can use it.