could anyone please tell me what's the difference between getApplicationContext() and MyActivity.this.."MyActivity" being a class that extends Activity class..somethimes getApplicationContext() doesn't work and I need to use MyActivity.this when the constructur asks for a context...
for example, if i use
ProgressDialog p=new ProgressDialog(getApplicationContext()); it gives an error
however, if i use
ProgressDialog p=new ProgressDialog(MyActivity.this); it runs fine