how i can call function from main activity from an adapter code example
Example: call activity method from adapter
if (mContext instanceof YourActivityName) {
((YourActivityName)mContext).yourDesiredMethod();
}
if (mContext instanceof YourActivityName) {
((YourActivityName)mContext).yourDesiredMethod();
}