Forward or Backward Compatibility in Android?

后端 未结 4 781
甜味超标
甜味超标 2021-01-04 18:30

I would like to know whether the Android provides any sort of compatibility i.e either forward or backward. It means as in Blackberry if develop an Application with JDE 4.2

4条回答
  •  花落未央
    2021-01-04 19:13

    Because the Android documentation is licensed under the Apache license, I'm comfortable quoting a large section:

    Android applications are generally forward-compatible with new versions of the Android platform.

    Because almost all changes to the framework API are additive, an Android application developed using any given version of the API (as specified by its API Level) is forward-compatible with later versions of the Android platform and higher API levels. The application should be able to run on all later versions of the Android platform, except in isolated cases where the application uses a part of the API that is later removed for some reason.

    Forward compatibility is important because many Android-powered devices receive over-the-air (OTA) system updates. The user may install your application and use it successfully, then later receive an OTA update to a new version of the Android platform. Once the update is installed, your application will run in a new run-time version of the environment, but one that has the API and system capabilities that your application depends on.

    ...

    Android applications are not necessarily backward compatible with versions of the Android platform older than the version against which they were compiled.

    Each new version of the Android platform can include new framework APIs, such as those that give applications access to new platform capabilities or replace existing API parts.

    -- From: http://developer.android.com/guide/topics/manifest/uses-sdk-element.html

    Though they are forward compatible, Android apps will not be able to use features of the SDK that were introduced after they were written, not surprisingly.

提交回复
热议问题