Issue
If I'm inside a Fragment how can I call a parent's activity?
Solution
Yes, Its right by calling getActivity and cast it with parent activity to access its methods or variables ((ParentActivityName)getActivity())
Try this one.
ParentActivityName
is parent class name
Answered By - DcodeChef
0 comments:
Post a Comment
Note: Only a member of this blog may post a comment.