Lorenzo Sciuto
Lorenzo Sciuto

Reputation: 1685

Android: TabActivity deprecated using Fragment instead

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! :)

Upvotes: 0

Views: 5900

Answers (2)

Waqas
Waqas

Reputation: 4489

Not sure if you're still looking (hopefully not :) ) but here's a really good one: how to use fragments

Upvotes: 1

Rajdeep Dua
Rajdeep Dua

Reputation: 11230

Try running ApiDemos app shipped with SDK Samples.

http://developer.android.com/resources/samples/ApiDemos/src/com/example/android/apis/app/FragmentTabs.html

Upvotes: 0

Related Questions