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

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

python - Django-easy-pdf: xhtml2pdf reporting reportlab 2.2+ is required, but 3.0 installed -

collision detection - C++ library for mesh to mesh intersection: what is available? -