android adapter call activity method code example
Example: call activity method from adapter
if (mContext instanceof YourActivityName) {
((YourActivityName)mContext).yourDesiredMethod();
}
if (mContext instanceof YourActivityName) {
((YourActivityName)mContext).yourDesiredMethod();
}