May 25, 2011

Android API Difference between 2.0 and 3.1 OS

History of Android API Changes in Percentages.

The table below list the changes from version 2.0 to 3.1. The table includes only the highest-level program elements— that is, if a class with two methods was added, the number of methods added does not include those two methods, but the number of classes added does include that class.


OS Version API Level % change Addition Changes Removals Total
Android 2.0 to 2.1 6 to 7 0.48 81 37 0 118
Android 2.1 to 2.2 7 to 8 5.7 475 225 33 733
Android 2.2 to 2.3 8 to 9
Android 2.3 to 2.3.4 9 to 10 0.65 25 17 2 44
Android 2.3.4 to 3.0 10 to 11 2.56 1182 375 27 1584
Android 3.0 to 3.1 11 to 12 1.15 174 126 14 314

Calculation of Change Percentages

The percent change statistic reported for all elements in the "to" API Level specification is defined recursively as follows:

Percentage difference = 100 * (added + removed + 2*changed)
                        -----------------------------------
                        sum of public elements in BOTH APIs
where added is the number of packages added, removed is the number of packages removed, and changed  is the number of packages changed. This definition is applied recursively for the classes and their program  elements, so the value for a changed package will be less than 1,  unless every class in that package has changed. The definition ensures that if all packages are removed and all new  packages are added, the change will be 100%.

Related Post

1. Android API Difference between 3.0 and 3.1 OS