call adapter method from activity 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();
}