You shouldn't be doing getApplicationContext(), instead try using Search.this.
getApplicationContext()
Search.this