Replacing android Fragment from Main activity -


i'm new android , stuck. keep getting exception when try inflate fragment.

here's project details: tabhost project. have "dummy" activity each tab. each tab "dummy" activity has linear layout use inflate group of fragments tab to. when create activity under given tab main activity, add default fragment activity. works perfect.

now issue: have actionbar menu dynamically built depending on tab focused. when user clicks menu item, need replace current fragment on focused tab activity. because actionbar on main activity , not host activity focused fragment, having trouble inflating fragment main activity. i've spent few full days trying figure out how this. no matter do, "no view found id 0xxxxxxx fragment.". i'm assuming because main activity not tied fragmentmanager of tab activity used host fragments.

any suggestions on how can replace fragment on host activity main activity?

thanks in advance!

check out use of fragmentactivity @ http://thepseudocoder.wordpress.com/2011/10/04/android-tabs-the-fragment-way/


Comments

Popular posts from this blog

SPSS keyboard combination alters encoding -

Add new record to the table by click on the button in Microsoft Access -

javascript - jQuery .height() return 0 when visible but non-0 when hidden -