I\'m dealing with fragments. I have an Activity and different fragments. Each fragment need the access to a Class(call i
Activity
fragments
fragment
Class(call i
you have to Additional cast need to be done:
Activity activity123 = getActivity(); if(activity123 instanceof ParentActivity) { ((ParentActivity) activity123).someMethodInParentActivity(); }