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!
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
Mark Truelove
669 PointsCurious about full screen (Crystal Ball)
I'm moving along smoothly lately, just getting in to the launcher icon and settings video. Ben mentions here that we've been using full-screen mode to hide the window label, for example. This is true, and it behaves that way in the emulator.
However, for the first time, I noticed that it doesn't behave that way on my phone. It's an Epic 4G, Android 2.3.6. When Crystal Ball is running, I still have the notification bar and the app label (now "Crystal Ball") at the top of the screen.
Do you think this is simply a versioning issue, or am I overlooking something that would adjust this?
Thanks!
7 Answers

Ernest Grzybowski
Treehouse Project ReviewerWhat does it say in your AndroidManifest.xml?
Look for the:
android:theme
in the
<application>
tags.
For example:
<uses-sdk
android:minSdkVersion="8"
android:targetSdkVersion="17" />
<application
android:allowBackup="true"
android:icon="@drawable/ic_launcher"
android:label="@string/app_name"
android:theme="@android:style/Theme.Black.NoTitleBar.Fullscreen" >
<activity

Ben Jakuben
Treehouse TeacherI would guess this is device-specific or maybe version-specific. If I run the app on my 2.3.3 emulator it takes up the entire full screen. There are different ways to try hiding the Notification Bar and/or the Status bar. Here's one that deals with setting the theme:

Mark Truelove
669 PointsThis value worked. I actually placed the string in the Theme: field on the Application form, thinking it would generate the matching code in the appropriate spot in the .xml, but it didn't. Just another oddity (to me), but not something I need to comprehend right now.
Thanks!

Ernest Grzybowski
Treehouse Project ReviewerHey Mark can you explain what code snippet worked for you? I'm curious because I've never had a Theme.Black.NoTitleBar.Fullscreen
not work.

Ernest Grzybowski
Treehouse Project ReviewerHey Mark can you explain what code snippet worked for you? I'm curious because I've never had a Theme.Black.NoTitleBar.Fullscreen
not work.

Mark Truelove
669 PointsHi Ernest,
Someone in the other thread said the code block didn't work for them. My situation was a little different.
I typed Theme.Black.NoTitleBar.Fullscreen into the first place I saw "Theme", which just happened to be on the Application tab (where you fill in the info in a form). I used it there and it worked.
I flipped over to the AndroidManifest.xml tab and couldnt see the changes in the code. It turned out that it was there, in a long line that extended well to the right of the editor screen, but I found it.
Thanks,

Ernest Grzybowski
Treehouse Project ReviewerHeh. Oh well. Glad you could work it out. I always edit the actual .xml itself.