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