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 Understanding the Rest of the Pieces

amir baldiga
amir baldiga
2,530 Points

no Action Bar Presented

my App work Perfectly and i can swipe the screen what means that there are fragments but i dont see a tab menu at the top of the screen.... i implements the actionBar and still i didn;t get the methods that we swee in the video

i use android studio 1.4 what can be the problem?

2 Answers

The ActionBar with Tabs has been deprecated. I built a new ToolBar with PagerTabStrip that works, but haven't had a chance to push it to github yet,and with the fix I made, it isn't returning from the Login to the MainActivity (yet).

However after I tracked that all down, and built it, I found this reference where someone got it to work with an ActionBar and PagerTabStrip.

https://teamtreehouse.com/community/this-is-the-droid-you-are-looking-for-how-to-get-past-this-lesson-while-knowing-the-modern-standard

You might want to keep that link handy, as the Meme Maker in Android Data Persistence uses the same navigation. I also rebuilt the 'Starter Kit' to the Meme Maker, but also have not pushed it to github yet.

amir baldiga
amir baldiga
2,530 Points

im sorry but i couldnt understand your answer my english is a bit lack in reading please if you can simplify the answer

If you look at your code in main activity java, all the stuff about tabs will be crossed out in Android Studio.

The tab part doesn't work anymore because it's deprecated, and they made a new way to do tabs.

I will probably answer more later if you got what I said this time. What language do you read?

amir baldiga
amir baldiga
2,530 Points

basiclly hebrow but that ok i read that there is no tabs anymore so thats mean im ok im not really need the tabs its only for practice :)