title: Cannot find symbol 'Context', android.content.Context
body: <p>I have the following code:</p>
  
  <pre><code>package com.androidtest.notification;
  
  import android.app.Activity;
  import android.os.Bundle;
  import android.widget;
  import android.widget.Toast;
  import android.content.Context;
  
  public class activityNotification extends Activity
  {
  
      @Override
      public void onCreate(Bundle savedInstanceState)
      {
          super.onCreate(savedInstanceState);
          setContentView(R.layout.main);
  
          Context context = getApplicationContext();
          CharSequence text = "Hello toast!";
          int duration = Toast.LENGTH_SHORT;
  
          Toast toast = Toast.makeText(context, text, duration);
          toast.show();
      }
  }
  </code></pre>
  
  <p>I'm trying to compile it using ant on command line '$ ant build', but I keep getting the following error:</p>
  
  <pre><code>error: cannot find symbol
  [javac]         Context context = getApplicationContext();
  [javac]         ^
  </code></pre>
  
  <p>Any suggestions please? Thanks!</p>