I'm trying to implement a MenuBar (i need it always visible so the context menu is not useful !) in the bottom of every activity for my app. I saw that the easy to use TabActivity is now deprecated...and so i didn't get yet ho should i use the Fragments "technology". I already found some discussion...but there is any already implemented eclipse project i could download somewhere or any easy to follow tutorial? The one i followed over here http://developer.android.com/reference/android/app/TabActivity.html was really incomplete. I get some class cast exception due the fact i didn't get how to use FragmentActivities. Help! :)
Asked
Active
Viewed 5,885 times
2 Answers
1
Not sure if you're still looking (hopefully not :) ) but here's a really good one: how to use fragments

Waqas
- 4,411
- 6
- 27
- 31
-
this looks interesting...i'm still looking actually :P this is a problem i have in a lot of apps that i want to renew! :) I'll give it a look asap! Thanks! – Lorenzo Sciuto Jul 04 '12 at 13:19
0
Try running ApiDemos app shipped with SDK Samples.

Rajdeep Dua
- 11,190
- 2
- 32
- 22
-
thanks for replying! i can't understand how should i use it... what should be a FragmentStack for example? i can't understand this lines: – Lorenzo Sciuto Jan 30 '12 at 11:22
-
mTabManager.addTab(mTabHost.newTabSpec("simple").setIndicator("Simple"), FragmentStackSupport.CountingFragment.class, null); mTabManager.addTab(mTabHost.newTabSpec("contacts").setIndicator("Contacts"), LoaderCursorSupport.CursorLoaderListFragment.class, null); mTabManager.addTab(mTabHost.newTabSpec("custom").setIndicator("Custom"), LoaderCustomSupport.AppListFragment.class, null); – Lorenzo Sciuto Jan 30 '12 at 11:24