Skip to content
Hello there everyone,
This week we are going to learn the basic difference between Activity and AppCompatActivity in Android Application Development.
You might have noticed that in many tutorials and also in many ready-made drag and drop tools like SketchWare extends Activity in their MainActivity.
But, in conventional Android Development in Android Studio IDE it’ll recommend to extend the AppCompatActivity.
Here’s the reason why :
Activity will let you code very easy, but you need to code it for every new version of Android (say KitKat code will vary with Marshmellow).
AppCompatActivity will be some what difficult to code, but once coded it’ll support all higher versions of Android.
A DEVELOPER ALWAYS NEED TO PURSUE THE PERFECT CODE