Android 为开发者提供的SDK(Software Development Kit,软件开发包)提供了一系列API,通过调用这些API 即可写出各具形态的app 了,所以我们应该对SDK 有一定的了解。        
  • android

SDK 中Java 类以树层次结构打包,最上层的是android package,它主要包含了app 的资源类和对安卓系统的权限。如:Manifest| Manifest.permission | R | R.anim | R.array | R.attr | R.color| R.dimen | R.drawable | R.id | R.layout | R.string | R.style | R.xml等。

  • android.app
android.app 中包含了android已封装好的一些高级类,如: Activity|Service | Fragment 。Activity类表示人机交互的一个界面。Service类表示一个后台长时间运行的组件,无UI,比如处理网络通信,音乐播放,或者是与一个content provider 交互。Fragment类在平板等大屏显示时表示activity 行为的一部分,并且关联相应的UI(可以看做是一部分UI,类似于activity)。adroid.app 中还包含了其他类和接口:Dialog| ActionBar| Notification等。
  • android.os
提供基础的操作系统级别的服务:services, message passing,IPC(Inter-Process Communication)。BatteryManager电池状态信息。Bundle一个字符各种可打包类型映射
  • android.provider
包含了可以访问android 提供content providers 的类。
  • android.support.design
包含app 外观设计的一些资源类: R | R.anim| R.attr | R.bool| R.color| R.dimen| R.drawable| R.id| R.integer| R.layout| R.string| R.style| R.styleable等。
  • android.support.design.widget
提供了app 布局的一些小部件,如Bar 等。 AppBarLayout| NavigationView等。
  • android.text
关于文字的类。有关接口和类:Editable | GetChars| Annotation| AutoText| Html| Layout
  • android.util
人如其名,包含一些小工具类,如时间、base64编码、字符串和数字处理方法等。
  • android.view
安卓app 上常用的一些UI 组件类。接口:Menu| ContextMenu| MenuItem类:Display| Gravity| LayoutInflater(在对应的View 对象中实例化某个XML布局)| MenuInflater| View(UI最基本的组件)
  • android.widget
包含屏幕上使用的UI 组件,你也可以自己设计一些组件(实现View 的子类)。类: Button| CheckBox| CheckedTextView| EditText| GridView| ImageButton| ImageView| LinearLayout| ListView| MediaController| ProgressBar| RadioButton| RadioGroup| RelativeLayout| Scroller| TableLayout| Toast等。
  • android.content
包含了在设备上访问和写入数据的类,主要包括:1.内容分享 (android.content 中的ContentProvider、ContentResolver、Intent和 IntentFilter);2. 包管理(访问一个安卓包.apk的信息) 3. 资源管理(获取应用app 相关的资源数据,如strings,drawables,media等)。
  • android.database
包含用于处理从content provider 返回来的数据。如果需要管理一个私有的数据库,请使用 android.database.sqlite 类。
  • android.database.sqlite
管理Sqlite 的类。接口和类:SQLiteCursorDriver| SQLiteClosable | SQLiteCursor| SQLiteDatabase| SQLiteQuery | SQLiteStatement 等。
  • android.graphics
提供可以在屏幕上直接画图的低级工具,如画布、滤镜、点和矩形。
  • android.graphics.drawable
提供管理可视化元素(图、灰度等)的类,这些类经常被widgets 作为背景图片或者指示器。
  • android.media
管理音频和视频的类。AsyncPlayer| AudioManager| MediaPlayer| Ringtone
  • android.net
java.net.* 之上的网络访问类。
  • android.opengl
使用OpenGL画图。

查看原文:http://blog.foool.net/2016/05/android-%e5%bc%80%e5%8f%91%e7%ac%94%e8%ae%b0%ef%bc%88sdk%ef%bc%89/

更多相关文章

  1. Android中ContentProvider组件详解
  2. Android 交互功能组件BroadcastReceiver 的简单使用
  3. Android组件属性
  4. android开发之listView组件用法实例简析

随机推荐

  1. Android内核学习——SearchManager分析
  2. android 自定义水平和圆形progressbar 只
  3. Android(安卓)系统启动时自启动一个app
  4. 编译Android内核模块
  5. Android(安卓)build.gradle buildConfigF
  6. VMware安装Android虚拟机及adb调试
  7. Android七大布局
  8. Android访问服务器出现W/System.err(9302
  9. 一个不错的启动菜单显示屏动画效果
  10. Android消息机制