Sunday, July 24, 2011

Re: [android-developers] Re: starting Activity in tabbed UI from onTabChangedListener()

See what mLocalActivityManager.startActivity() returns. You have to
attach returned Window (or its root View) to your tab

Thanks. That's was what I missed. For reference (lamest approach):

final Window window = mLocalActivityManager.startActivity(tag, intent);
mTabContent.removeAllViews();
mTabContent.addView( window.getDecorView() );

--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscribe@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home


Real Estate