android 学习十 support package

转载 2012年03月27日 21:33:21

support package

支持的最低版本的api版本是4.

support package 包含静态的support 库,通过将这个库添加到android application 中我们便可以使用那些不适用于旧版本的或者是那些提供的实用的但不属于框架的api。目的就是通过捆绑更多的api到application中来简化开发,同时可以使你话费更少的精力在平台的版本问题上。

note:support package 包含不止一个的support library每一个都有一个不同的支持的最低版本的api版本,例如一个库要求api版本是四或者更高,同时另一个库要求api版本是13或者更高(V13是V4的一个超集,包含了额外的支持V13api的类),最低版本通过名字来表示如V4 V13。

在google最新的sdk文档中我们能看到最新版本support package 的修订。


以下摘录自google的官方文档,告诉大家怎么下载support package 以及如何将support library 加入到自己的工程中来,英文很容易懂,就不翻译了。

Downloading the Support Package

The Support Package is provided as a downloadable package from the Android SDK and AVD Manager. To install:

  1. Launch the SDK and AVD Manager.

    From Eclipse, you can select Window > Android SDK and AVD Manager. Or, launch SDK Manager.exe from the <sdk>/ directory (on Windows only) or android from the<sdk>/tools/ directory.

  2. Expand the Android Repository, check Android Support package and click Install selected.
  3. Proceed to install the package.

When done, all files (including source code, samples, and the .jar files) are saved into the <sdk>/extras/android/support/ directory. This directory contains each of the different support libraries, such as the library for API level 4 and up and the library for API level 13 and up, each named with the respective version (such as v4/).

Setting Up a Project to Use a Library

To add one of the libraries to your Android project:

  1. In your Android project, create a directory named libs at the root of your project (next to src/res/, etc.)
  2. Locate the JAR file for the library you want to use and copy it into the libs/ directory.

    For example, the library that supports API level 4 and up is located at <sdk>/extras/android/support/v4/android-support-v4.jar.

  3. Add the JAR to your project build path.

    In Eclipse, right-click the JAR file in the Package Explorer, select Build Path > Add to Build Path. You should then see the JAR file appear in a new directory called Referenced Libraries.

Your application is now ready to use the library APIs. All the provided APIs are available in the android.support package (for example, android.support.v4).


相关文章推荐

android 学习十 support package

support package 支持的最低版本的api版本是4. support package 包含静态的support 库,通过将这个库添加到android application 中我们便可...

target support package 4

  • 2009-12-09 20:42
  • 2.77MB
  • 下载

BSP(Board Support Package)概念解析

什么是BSP   BSP(Board Support Package)概念解析      BSP是板级支持包,是介于主板硬件和操作系统之间...

Microsoft Windows CE 5.0 Board Support Package, Boot Loader, and Kernel Startup Sequence

Microsoft Windows CE 5.0 Board Support Package, Boot Loader, and Kernel Startup SequenceWindows CE 5...

Support Package 和 ActionBarSherlock 使用心得

Action Bar 和 ViewPager 出现以后,使得 Android 程序 cool 了很多。简单的说,ViewPager 使得实现手指横向划过屏幕来切换场景变得简单,这种切换方式在触摸屏上非...

Microsoft Windows CE 5.0 Board Support Package, Boot Loader, and Kernel Startup Sequence

Learn about the initial, low-level startup sequence and the hardware platform functions that are per...

Support Package 和 ActionBarSherlock 使用心得

本文转载自http://blog.2ndboy.net/support_package_and_actionbarsherlock_tips/     Action Bar 和 ViewPage...

Android学习之Design Support Library中TextInputLayout的使用

今天学习了一个Android Design Support Library 中的TextInputLayout控件,感觉还不错,较之以往的Editetxt,多了几分灵活性,使用也很简单,故此给大家推荐...
内容举报
返回顶部
收藏助手
不良信息举报
您举报文章:深度学习:神经网络中的前向传播和反向传播算法推导
举报原因:
原因补充:

(最多只允许输入30个字)