android - How to communicate between FragmentTabHost and Activity? -


i have fragment add activity. in fragment, declare fragmenttabhost tabspec. how can communicate between tabspec , activity?

tab host means in using fragment na, asking how communicate between fragment , activity.? create interface , create abstract method in it. extends activity interface , implement method.and in fragment call abstract method , write code. if have still doubts refer example. android communication between activity , fragment hope helps


Comments

Popular posts from this blog

windows - Single EXE to Install Python Standalone Executable for Easy Distribution -

c# - Access objects in UserControl from MainWindow in WPF -

javascript - How to name a jQuery function to make a browser's back button work? -