I am building app with the sdk levels (min 19- max 22), And i want to use material design in my app. Should i extend Activity or AppcompatActivity? What is the difference? I know AppcompatActivity is support library for backward compatability, Other than that is there any main difference between both?
Asked
Active
Viewed 345 times
2 Answers
0
Extending Activity is deprecated so you should use AppCompatActivity.

Dolan
- 103
- 1
- 1
- 9
-
-
-
@DanielNugent Can u please tell me that what happen when i will use Activity in place of Appcompactivity? I have searched but did not get the solution.Please help me – Ravindra Kushwaha Dec 22 '16 at 16:01
0
Ya we can.Just add the library in the Gradle file and use it in the activity.

Sharath
- 691
- 8
- 23
-
I have edited my question. can you please look in to it give some suggestions on it. – Murali krishna Dec 10 '15 at 05:22
-
Read this topic to understand the difference: http://stackoverflow.com/questions/31297246/activity-appcompatactivity-fragmentactivity-and-actionbaractivity-when-to-us – Sharath Dec 10 '15 at 10:17