API Change Statistics

The overall difference between API Levels 11 and 12 is approximately 1.15%.


Total of Differences, by Number and Type

The table below lists the numbers of program elements (packages, classes, constructors, methods, and fields) that were added, changed, or removed. 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.

Type Additions Changes Removals Total
Packages 3 24 0 27
Classes and Interfaces 5 65 6 76
Constructors 4 1 6 11
Methods 75 27 2 104
Fields 87 9 0 96
Total 174 126 14 314

Changed Packages, Sorted by Percentage Difference

Percentage Difference* Package
9 android.webkit
4 android.drm
3 android.util
3 android.text.format
2 android.appwidget
2 android.view
2 android.net.http
1 android.net
1 android.app
<1 android.view.inputmethod
<1 android.net.sip
<1 android.text.method
<1 android.graphics
<1 android.os
<1 android.hardware
<1 android.content.pm
<1 android.net.wifi
<1 android.animation
<1 android.view.animation
<1 android.text
<1 android.provider
<1 android.widget
<1 android.content
<1 android

* See Calculation of Change Percentages, below.


Changed Classes and Interfaces, Sorted by Percentage Difference

Percentage
Difference*
Class or Interface
50 android.drm.DrmManagerClient.OnEventListener
50 android.webkit.WebView.PictureListener
33 android.util.DebugUtils
29 android.net.TrafficStats
25 android.webkit.WebSettings.LayoutAlgorithm
21 android.view.MotionEvent
20 android.util.TimeUtils
20 android.view.InputEvent
20 android.view.MotionEvent.PointerCoords
18 android.view.InputDevice
17 android.drm.DrmEvent
16 android.view.InputDevice.MotionRange
14 android.appwidget.AppWidgetProviderInfo
14 android.drm.DrmInfoEvent
12 android.text.format.Formatter
11 android.drm.DrmErrorEvent
11 android.view.inputmethod.InputMethodSubtype
10 android.webkit.CookieManager
10 android.webkit.WebHistoryItem
9 android.graphics.Camera
9 android.net.http.SslCertificate
9 android.util.Config
6 android.util.EventLog
6 android.util.StateSet
5 android.text.method.MovementMethod
5 android.util.Xml
5 android.webkit.WebView
5 android.app.ActivityManager.RecentTaskInfo
5 android.app.FragmentBreadCrumbs
5 android.os.ParcelFileDescriptor
4 android.graphics.Bitmap
4 android.net.sip.SipProfile.Builder
3 android.view.KeyEvent
3 android.os.Build.VERSION_CODES
3 android.net.sip.SipProfile
3 android.webkit.WebSettings
3 android.view.ViewConfiguration
3 android.widget.DatePicker
2 android.app.DialogFragment
2 android.app.DownloadManager.Request
2 android.app.Fragment
2 android.view.Window.Callback
2 android.app.ActivityManager
2 android.app.DownloadManager
2 android.text.method.BaseMovementMethod
1 android.provider.MediaStore
1 android.text.SpannableStringBuilder
1 android.view.animation.Animation
1 android.hardware.Camera
1 android.webkit.WebViewClient
1 android.provider.Browser
1 android.animation.ValueAnimator
1 android.app.Dialog
1 android.os.Bundle
1 android.content.pm.ApplicationInfo
1 android.widget.RemoteViews
1 android.app.SearchManager
1 android.net.wifi.WifiManager
<1 android.view.View
<1 android.content.pm.PackageManager
<1 android.content.Intent
<1 android.app.Activity
<1 android.view.Window
<1 android.content.Context
<1 android.R.attr

* See Calculation of Change Percentages, below.


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%.

No examples for this method.
Frequently called with: [Clear]
Portions of this page are reproduced from work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License. The original page is available here.