Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

Android Build a Self-Destructing Message Android App Using Fragments for Tabs Modifying Tabs from the Template

I have no tabs to switch between in Android Studio (Ribbit app)

Hello :) So I am doing the Ribbit app and I've come to the "Modifying tabs from the template" part. I followed along and made the changes that are necessary for Android Studio (as was mentioned in the Teacher's Notes). The thing is, when I run my app, I have no tabs to switch between. I mean, I can swipe but I don't see them above. Also my Action Bar is missing since now I'm extending the FragmentActivity instead of ActionBarActivity. Any ideas how to make it come up again while still extending FragmentActivity?

2 Answers

I think (and i have been following the lessons as well) that when you first create the main activity, the tutor creates a blank activity and then on the next screen chooses "tab layout" or something like that..

on my version that option for tabbed activity wasn't highlighted.. instead if you go back a step and you can choose a tabbed template... (I am not 100% sure but this is what I have done)

I selected Tabbed Activity, and on the next window selected the needed navigation style (the one with the tabs above). The thing is, when I launch the app I am taken to the inbox screen where I can't logout, since there's no action bar at the top. I think this is because it's taking me to the InboxFragment which is extending ListFragment and not ActionBarActivity (or something). Do you have any idea how to make the action bar at the top appear so I can logout and login as a different user?