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

Android Fun Facts activity

Ok so I want to know how I can delete the top bar that says "Fun Facts" with the little robot dude... Is it possible or do I have to make a new app?

4 Answers

Add the following line to your onCreate() method.

requestWindowFeature(Window.FEATURE_NO_TITLE);

Just in my main class?

I believe you will need to do it for anything that has an inflated layout associated with it, but you could just try it either way and see how it goes.

I just get a flood of errors when I do that? Is this right? protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_fun_facts); requestWindowFeature(Window.FEATURE_NO_TITLE);

It needs to go before the setContentView() line

Thank you so much :)