@Override public void onReceive(final Context context, Intent intent) { MyApplication mApplication = ((MyApplication)context.getApplicationContext()); }
References
https://stackoverflow.com/questions/24825684/access-to-application-class-in-broadcast-receiver