android - Fragments and Activities -
i have main activity hosting 3 fragments. want pass data activity(which hosts form) 1 of fragment in main activity. main activity uses viewpager host 3 fragments. how possible?
that depends on data want pass, guess packing data bundle instance job. when create intent launch activity, can set arguments on it. , later use arguments when creating fragments.
take @ this(from intent class):
public intent putextra (string name, bundle value) public bundle getextras ()
Comments
Post a Comment