In my app Application class is overrided and used for storing some data. Where needed I'm using ((MyApplication)getApplication()).someMethod()
and it working well. But I have one class where Activity is not available. In this class is available the context only. So I cannot call method getApplication().
How can I get Application object without getApplication()
method? May be I can get it from Context or via static methods?