I am new to android , some times my application works fine if i pass
If I use,
this for context // sometimes gets error
If I use,
ClassName.this for context // sometimes gets error
android.view.WindowManager$BadTokenException:
Unable to add window -- token
android.app.LocalActivityManager$LocalActivityRecord@40537450 is not valid; is your activity running?
If I use,
getApplicationContext()
android.view.WindowManager$BadTokenException:
Unable to add window -- token null is not for an application
If I use,
ClassName.this.getParent()
I am confused when to use what.
Please Explain