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 Simple Android App (2014) Creating the Screen Layout Using a Fullscreen Theme

Eileen Tang
Eileen Tang
895 Points

The Emulator is NOT showing the same thing as the Preview

On the preview screen, I have exactly what the video showed. The Fun Fact app has a green background with no action bar. But when I run it on the emulator, it has a white background and the action bar is still there. Why is it not working? I would assume it has something to do with the coding, but then again, if that was the problem, why does my preview display it correctly?

Also, when opening the emulator, is the app supposed to pop up on its own? Because the first few times, it opened automatically. But now I have to go into apps and open the "Fun Facts" app on my own. That was also when I found out that the emulator does not display the same stuff as the preview.

2 Answers

Sagar Suri
Sagar Suri
6,043 Points

1) uninstall the app from the emulator and reinstall it. 2) I hope you have not create two different app with the same name..try to check that out. 3) run your app on a real device. 4) use genymotion or a different emulator.

Im having the same problem