What is the Context passed into onReceive() of a BroadcastReceiver?
What is the context that is passed int the onReceive method of a BroadcastReciver : public void onReceive (Context context, Intent intent) According to the official documentation : The Context in which the receiver is running. A little research gives below result... For static receiver public class MyReceiver extends BroadcastReceiver { @Override public void onReceive(Context context, Intent intent) { Log.e("PANKAJ", "Context class " + context.getClass().getName()); Log.e("PANKAJ", "Application Context class " + context.getApplicationContext().getClass().getName()); } } I got below log 08-05