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 an Interactive Story App (Retired) Intents and Multiple Activities Getting Data from an Intent

Grigorij Schleifer
Grigorij Schleifer
10,365 Points

Difference AppCombatActivity vs Activity extension

Hey folks,

can someone explain me the difference of AppCombatActivity vs Activity extension ???

1 Answer

Kourosh Raeen
Kourosh Raeen
23,733 Points

AppCombatActivity is a class in the v7 appcompat library, which is a compatibility library that back ports some features of recent versions of Android to older devices. It enables the use of the ActionBar and Material Design specific implementations like the Toolbar for older devices using versions of Android as old as Android 2.1 (API level 7). So if your app's minSdkVersion is a version that does not support the new features in newer APIs you can use the support library to enable those features. In this case, you have to have all your activities extend AppCombatActivity instead of the Activity base class.