I\'m super new to Android development and Java in general. Here\'s the basic setup: I have a splash screen with an AsyncTask
to check server availability. Follo
If The activity that you use Called "MyActivity
" then you can do the following:
MyActivity.this
This chunk of code will return the this "current" object of outer class
Use CurrentClassName.this
Intent i = new Intent(CurrentClassName.this, LoginActivity.class);
getActivity()
: used with Fragments
Return the Activity this fragment is currently associated with.
class.this
isn't the same as this
when you have nested class.