ActionBarActivity is deprecated

AndroidAndroid StudioAndroid ActionbarDeprecated

Android Problem Overview


Actually there is no problem. Project compiles and runs. But I can't understand what is mean strikeout class name (Android Studio tells that there is deprecated code is used)enter image description here. Can anybody explain?

Android Solutions


Solution 1 - Android

Since the version 22.1.0, the class ActionBarActivity is deprecated. You should use AppCompatActivity.

Read here and here for more information.

Solution 2 - Android

According to this video of Android Developers you should only make two changes

enter image description here

Solution 3 - Android

android developers documentation says : "Updated the AppCompatActivity as the base class for activities that use the support library action bar features. This class replaces the deprecated ActionBarActivity."

checkout changes for Android Support Library, revision 22.1.0 (April 2015)

Attributions

All content for this solution is sourced from the original question on Stackoverflow.

The content on this page is licensed under the Attribution-ShareAlike 4.0 International (CC BY-SA 4.0) license.

Content TypeOriginal AuthorOriginal Content on Stackoverflow
Questionuser4696584View Question on Stackoverflow
Solution 1 - AndroidGaëtanView Answer on Stackoverflow
Solution 2 - AndroidJorge CasariegoView Answer on Stackoverflow
Solution 3 - AndroidAmol DesaiView Answer on Stackoverflow