I thought that Android context work as a singleton object which you access from differents ways.
- Activities: like "this"
- Methods: getContext() or getApplicationContext()
- and more...
However, in my project, I've created a simple Spinner using a simple ArrayAdapter in an nested AsyncTask (onPostExecuteMethod) in my MainActivity and I saw that it works different using getApplicationContext() and MainActivity.this.
- Text white with -> getApplicationContext()
- Text dark with -> MainActivity.this
Can you explain me that?