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