Call Activity Method From adapter android


- Sometimes we need to update/call activity method from adapter


mContext = your activity context passed from activity 
through adapter's constructor


if (mContext instanceof YourActivity) {
    ((YourActivity) mContext).activityMethod();
}

Comments