Force Tab Activity creation?

Posted by Daniel on Stack Overflow See other posts from Stack Overflow or by Daniel
Published on 2010-05-31T17:48:29Z Indexed on 2010/05/31 17:53 UTC
Read the original article Hit count: 213

I have a TabHost and several tabs added to it.

Problem: The activities on these tabs are not created until the tab is pressed.

My tabhost is broadcasting intents but my broadcast receivers are not registered until onCreate in my tab activities is called. Is there any way to force activity creation?

Maybe my tabhost can call setCurrentTab and switch back to main tab(0), but is that really the best option available?

© Stack Overflow or respective owner

Related posts about android

Related posts about activity