I dont know difference between them, I sometimes use this, sometimes activityame.this, sometimes getAplicationContext() when android needs context passed.
Activity ObjectActivity Object, use it when you are working with an dynamic inner class, such as instantiating a new onClickListener() {}.Context reference for the whole application. Activity is a Context subclass, but certain things may vary between the appliation Context and the Activity. For the most part though, using the Activity as the Context works fine, I haven't coded anything that needs getApplicationContext() yet.If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With