android - How 2 fragments communicate each other inside an activity -


this question has answer here:

consider activity can call base activity. 2 fragments added base activity , call fragmentone , fragenttwo.how can fragmentone can communicate fragenttwo , vice versa .

you can define interface communicate between fragments. go through link http://developer.android.com/training/basics/fragments/communicating.html hope helps.


Comments

Popular posts from this blog

c++ - llvm function pass ReplaceInstWithInst malloc -

Cross-Compiling Linux Kernel for Raspberry Pi - ${CCPREFIX}gcc -v does not work -

java.lang.NoClassDefFoundError When Creating New Android Project -