title: Android: error: cannot find symbol method getApplication()
body: <p>I recently imported a Eclipse project into Android Studio and have started getting this error: 
  <code>error: cannot find symbol method getApplication()</code> which I wasn't getting in Eclipse from a custom adaptor:</p>
  
  <pre><code>public class MyAdapter implements SpinnerAdapter{
  
     @Override
     public View getView(int position, View convertView, ViewGroup parent) {
         TextView v = new TextView(getApplication());
  </code></pre>
  
  <p>Any ideas?</p>