To start an Activity you need an Intent, like:
Intent i = new Intent(context, class)
So to fill in the context parameter, a couple of options are available:
- Use
MyActivity.this
or justthis
- Use
getApplicationContext()
- Use
getBaseContext()
And I'm sure there are one or two more options. These options all appear in some sort of tutorial, one uses the first, the next uses the third option.
So which one should I use? Does it even matter? Is it different for different cases?