In an Android app, is there anything wrong with the following approach:
public class MyApp extends android.app.Application { private static MyApp instan
You are trying to create a wrapper to get Application Context and there is a possibility that it might return "null" pointer.
null
As per my understanding, I guess its better approach to call- any of the 2 Context.getApplicationContext() or Activity.getApplication().
Context.getApplicationContext()
Activity.getApplication()