Is there any difference between Activityname.this() & this in Android?
I am trying to open an activity from same activity with button i
no MyActivity.this is the same thing as just using this when you are in the activity itself and not something like a runnable where this would refer to the runnable and not the context
you should always use this or getActivity() if in a fragment and never use getApplicationContext()
check here for why you shouldn't use getApplicationContext()
getApplication() vs. getApplicationContext()