这个 android.support.v4.os 类 适用于哪些设备?

For what devices do I use this android.support.v4.os classes?

在 Android 支持库文档中关于 android.support。v4.os:

Support android.os classes to assist with development of applications for android API level 4 or later.

"Or later" 表示 API 5,6,7 等?但是一个设备 运行 API 22(目前最新) 会自动支持旧设备吗?

我不太明白 - 这意味着,我应该使用这个 class 让旧的 API 4 设备使用我的现代 API 22 应用程序?或者我应该用它来让新手机支持旧设备

  1. 我什么时候应该使用这么多的 support.v17、support.v13 包?
  2. 什么是向后兼容?

你能解释一下典型情况吗?

"Or later" means api5,6,7 etc?

表示此代码可用于旧版本Android的设备(api7= Android 2.1, api=8 Android 2.2.... api14 = Android 4.0)

but a device running api22(latest at the moment) will already automatically support older devices?

一台设备只能运行一个版本的Android。如果是运行ningapi22,则表示有Android5.1

I dont' quite understand it - it means, i should use this class to make old api 4 devices use my modern api22 app? or should I use it to make new phones support old devices

这意味着您可以使用此库将上一个 api(例如 21)引入的某些功能向后移植到旧设备 运行上一个 api 级别。

1.When should i use this numerous support.v17, support.v13 packages? 2. what is backward compatible?

您可以在需要时使用它们...如果您想使用 Google 卡片,您可以使用 v7 cardview 库。

如官方所述link

Each Support Library is backward-compatible to a specific Android API level.

例如

  • 支持 v4 : minSdk=4
  • v7 应用兼容库:minSdk=7
  • v7 recyclerview 库:minSdk = 7
  • v7 CardView 库:minSdk = 7

can you explain typical situation?

API21 引入了一个新的小部件,Toolbar。此小部件只能在 API >=21.

的设备上使用

使用 appcompat rel.21(一个 v7 支持库),您可以使用 Toolbar(注意软件包)在旧设备中实现您的工具栏 运行ning API>=7.