Answers for "when calling method from android adapter class and want to recreate the activity"

0

call activity method from adapter

if (mContext instanceof YourActivityName) {
  ((YourActivityName)mContext).yourDesiredMethod();
}
Posted by: Guest on December-16-2020

Code answers related to "when calling method from android adapter class and want to recreate the activity"

Code answers related to "Java"

Java Answers by Framework

Browse Popular Code Answers by Language