I am using 3 Fragments A,B,C with Tabhost Fragment Activity
Frag A,B,C each contains some fields belongs to one class only .That is Say Employee class
A contains EMpnm,EmpAge,EmpNo B contains EMpJoinDt,EmpSal C contains EmpHobby,EmpPersonalDtls
navigation is A->B->C using next button
Employee class is public .data frm each fragment set to Employee class using getter/Setter Each fragment will have Employee emp= new Employee() object
so every time data get wipe out on next button click from Frag A to B so data dnt get hold by emp object how to retain data from fragment 1 to 2 to 3 so that at the end on submit whole Class employee get submitted with values to DB
is shared preferences best solution for it? Is It good solution for my Case? using bundle
[Link]Pass data between fragments Note:the same class for each fragment