I have a helper class that I need context so I can access the SharedPrefences. Other posts recommend passing in the application context on instantiation of the helper class. So I made that change, it works very well except within a tab activity. The tab activity need to call a webservice to determine what data to display. The helper class makes the webservice call.
I have a helper class that I need context so I can access the
Share
If you get a null pointer you might be calling the function too early. In what function are you calling it?