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 (retired 2014) Pretty Little Things Adding an Image

theme setting crashes my app

When I set theme in Mnifest.xml, whatever it is, it crashes my app.

I use my old android device(nexus s), which is incredibly slow, to test app, but theme change worked before even on this device.

app theme(default?) totally works.

Only suspicious difference, I think, is that I updated SDK to newest version.

2 Answers

Ben Hen
Ben Hen
2,902 Points

try to change

<h1> <p>MainActivity extends ActionBarActivity</p></h1>

to

<p>MainActivity extends Activity</p>

It solved!Thank you so much! I've been familiar with extends Activity, but I didn't notice it had become some different one.

Jeffrey Wambugu
Jeffrey Wambugu
8,548 Points

Hi Could you elaborate on the error a little more. Please include relevant messages you see on the log cat. and the error the app gives on the emulator or device. As with the info you have given i could suggest reseting the adb in the DDMS view.