I have a class where I am getting context objects from more than 10 activities.
I want to know the context object of which activity is at the instant.
I have tried the following but no results.
context.equals(One.this);
context.equeals(One.class);
If any one having any idea please share with me!
I hope you aren’t holding on to these
Contextreferences longer than necessary, I found out what a wonderful source of memory leaks this can be if not handled correctly!If they are all
Activityinstances you can treat them as such and use: