Search code examples
androidperformancecompatibilityandroid-compatibility

How to do the compatibility mode for below android versions?


I am developing a android application.i am using action-bar in my app.but its not working in my Android smartphone(2.2.3) crashing. give me the solution.


Solution

  • Use actionbar sherlock for supporting lower versions too.. follow this

    Here is how to use ActionBarSherlock:

    1. Download the ActionBarSherlock here.

    2. Assuming you're using Eclipse IDE, right click your Project, click Properties, then Android. At the bottom, in Layout, Add ActionBarSherlock.

    3. Make sure ActionBarSherlock and your Project are in the same directory.

    4. Extend your classes to Sherlock naming. For example, instead of Activity, change it to Sherlock Activity. The main documentation of ActionBarSherlock is found here.

    5. For easier usage of Sherlock, create util methods in changing the Sherlock names and modifying it.