applicationContext and toast in android studio in kotlin



somebody please explain to me these lines:

  • Toast.makeText(this, …

I know (this) refers to mainActivity class or whatever name you used, how does it work? What does Context mean?

  • what is applicationContext ?


If your new to Android, I recommend you to follow the udacity-nanodegree.
The nanodegree itself cost money, but the resources are free.
So if you don’t want to pay, just lookup the nanodegree and follow the courses in order of that nanodegree