Android SDK简介-读书笔记(一)

从现在开始,决定每天抽空学习Android,所以后面会不间断的留下一些读书笔记。

今天主要看了Android的SDK体系介绍,参考文献为:http://blog.csdn.net/cbk861110/article/details/8837888

一、什么是Android SDK

SDK = Software Development Kit ,Android SDK主要是提供了在windows/linux/mac平台上的支持Android应用的开发组件,还包括在Android平台上的开发移动应用的所有工具集。

我们先下载sdk ,解压后看到其子文件有sources,platforms,temp,add-ons,build-tools,platform-tools,tools,samlpes,extras,system-image。所以我们接下来需要来了解每个子文件的作用

TingdeMacBook-Pro-2:sdk ting$ tree -L 1
.
├── add-ons      附加库,如GoogleMaps
├── build-tools    Android平台相关通用工具,比如aapt、aidl、dx等文件
├── extras       附加工具包
├── platform-tools  Android3.0后保存的通用工具,比如adb,sqlite3等
├── platforms     sdk真正的文件,不同平台根据API level划分SDK版本
├── samples      包含大量的示例文件
├── sources      Framework层的源代码
├── system-images   对应版本的虚拟机文件,一般有ARM和X86两种版本
├── temp
└── tools       sdk中的重要工具,如ddms,ant,emulator,monitor等

二、android.jar介绍

先来看一下platforms的目录结构:

TingdeMacBook-Pro-2:platforms ting$ tree -L 2
.
├── android-19
│   ├── android.jar
│   ├── build.prop
│   ├── data
│   ├── framework.aidl
│   ├── sdk.properties
│   ├── skins
│   ├── source.properties
│   ├── templates
│   └── uiautomator.jar
└── android-22
    ├── android.jar
    ├── build.prop
    ├── data
    ├── framework.aidl
    ├── sdk.properties
    ├── skins
    ├── source.properties
    ├── templates
    └── uiautomator.jar
如果要查看android.jar包的源码,可以在Android SDK Manager中勾选『Sources for Android SDK』,单击install Package,安装后在sdk/sources文件下查看其源码。Android 基本API的简介如下:
android.util:包含一些底层的辅助类,例如,特定的容器类,XML辅助工具类等.

android.os:提供基本的操作服务,消息传递和进程间的通行IPC.

android.graphics:作为核心的渲染包,提供图形渲染功能.

android.text android.text.method android.text.style android.text.util 提供一套丰富的文本处理工具,支持富文本,输入模式等.

android.database:包含底层API处理数据库,方便操作数据库表和数据.

android.content:提供各种服务访问数据在手机设备上,程序安装到手机设备和其他的相关资源,以及内容提供展示动态数据.

android.view:核心用户界面框架.

android.widget:提供标准用户界面元素,lists,buttons,layout managers等,是组成我们界面的基本元素.

android.app:提供高层的应用程序模型,实现使用Activity.

android.provider:提供方便调用系统提供的content providers的接口.

android.telephony:提供API交互和手机设备的通话接口.

android.webkit:包含一系列的工作在基于web内容的API.


				
时间: 2024-12-09 16:51:11

Android SDK简介-读书笔记(一)的相关文章

Android深度探索(卷1)HAL与驱动开发 第二章 搭建Android开发环境 读书笔记

Android深度探索(卷1)HAL与驱动开发 第二章 搭建Android开发环境 读书笔记   本章主要讲解在Ubuntu Linux 下搭建Android开发环境. 1.JDK:从官网下载压缩包,并将其解压缩. Gedit etc/profile 并设置PATH环境变量,记得PATH. 2.搭建Android应用程序开发环境. 安装Android SDK 安装Eclipse 安装ADT 配置ADT 建立AVD 这个步骤是安装Android SDK,步骤与操作与在Windows操作系统下的安装

《Pro Android Graphics》读书笔记之第六节

Android UI Layouts: Graphics Design Using the ViewGroup Class Android ViewGroup Superclass: A Foundation for Layouts The ViewGroup LayoutParams Class: Layout Parameters Deprecated Layouts: AbsoluteLayout and SlidingDrawer absoluteLayout 3 version 1.5

《Pro Android Graphics》读书笔记之第二节

Android Digital Video: Formats, Concepts and Optimization Android Digital Video Formats: MPEG4 H.264 and WebM VP8 H.263 支持老显示器 MPEG4 SP   supported for commercial video(支持商业视频) 3GP Google在2.3.3中加入对WebM的支持 video Stream 4.0以后版本 recommend using MPEG-4 H

《Pro Android Graphics》读书笔记之第五节

Android DIP: Device-independent Pixel Graphics Design How Android Supports Device Displays: UI Design and UX Device Display Concepts: Size, Density, Orientation, DIP size Type small,normal,large,extra large,extra extra large screen density the number

《Pro Android Graphics》读书笔记之第三节

Android Frame Animation: XML, Concepts and Optimization Frame Animation Concepts: Cels, Framerate, and Resolution 动画的发展 cel-base animation raster animation bitmap commonly called bitmap animation not currently support Animated GIF Optimizing Frame An

二 、 搭建Android 开发环境读书笔记

本章主要介绍如何搭建搭建Android 底层开发环境,主要包括搭建Android 应用程序开发环境,搭建Android NDK开发环境和交叉编译环境的搭建. (1)开发.测试和调试Linux驱动.HAL程序库的工具: DK6或以上版本:Eclipse 3.4或以上版本: ADT(用于开发Android应用程序): CDT(用于开发Android NDK程序): Android SDK:Android NDK: 交叉编译环境:Linux内核源代码: Android源代码: 用于调试开发板的串口工具

Android深度探索读书笔记 第一章

第一章首先介绍android系统架构(android是一个非常优秀的嵌入式操作系统),总共分为四层:第一层Linux内核,由于android是基于Linux内核的,所以android跟其他Linux系统没什么差异.这一层这一层主要包括Linux的驱动程序以及内存管理.进程管理.电源管理等.第二层编写的代码库,也包括Dalivk虚拟机的运行时.第三层android SDK 层.第四层应用程序(相当于android的UI).而这一层主要靠第三层中的Android SDK API 完成各种功能.其次介

Android深度探索读书笔记 第九章

HAL是建立在linux驱动之上的一套程序库,这套程序库属于linux内核层之上的应用层.编写一款支持HAL的linux驱动程序:1.在为linux驱动添加HAL,要想尽量保护敏感数据.Linux驱动的代码就要尽量简洁,尽可能将业务逻辑放到HAL library中.2.HA类就是普通的linux Library文件 ,但这类库文件有一个接口.通过HAL_MODULE_INFO_SYM变量实现.3.service Library也是Linux Library,也就是说service Library

《Pro Android Graphics》读书笔记之第四节

Android Procedural Animation: : XML, Concepts and Optimization Procedural Animation Concepts: Tweens and Interpolators Interpolator:http://developer.android.com/reference/android/animation/TimeInterpolator.html Procedural Animation Data Values: Range