title: Android Intent Context Confusing
body: <p>Can somebody explain this to me please :</p>
  
  <pre><code>Intent intent = new Intent(Context, AlarmReceiver.class);
  </code></pre>
  
  <p>I never understood and I seriously think I never will if somebody doesn't try to explain this to me in depth. This whole context thing is so confusing to me. Sometimes it works like this :</p>
  
  <pre><code>Intent intent = new Intent(getBaseContext(), AlarmReceiver.class);
  </code></pre>
  
  <p>Sometimes it wont work like that but it accepts only :</p>
  
  <pre><code>    Intent intent = new Intent(context, AlarmReceiver.class);
  </code></pre>
  
  <p>Sometimes its :</p>
  
  <pre><code>Intent intent = new Intent(this, AlarmReceiver.class);
  </code></pre>
  
  <p>etc. etc. and many other.</p>
  
  <p>I understand basics of context but how many are there? And why does eclipse throw me an error once and another time its fine? Why do we need to declare context sometimes? :</p>
  
  <pre><code>Context context;
  </code></pre>
  
  <p>I'm unable to find the right context for all situations how do I know what is the right one in every situation?</p>