Service的使用

概述 Service是一种没有界面且能长时间运行于后台的应用组件.其它应用的组件可以启动一个服务运行于后台,即使用户切换到另一个应用也会继续运行.另外,一个组件可以绑定到一个service来进行交互,即使这个交互是进程间通讯也没问题.例如,一个service可能处理网络事物,播放音乐,执行文件I/O,或与一个内容提供者交互,所有这些都在后台进行.     阅读全文
罗炜光's avatar
罗炜光 10月 04, 2016

Serializable与Parcelable

Serializable接口是Java中为对象提供标准的序列化和反序列化操作的接口,而Parcelable接口是Android提供的序列化方式的接口     阅读全文
罗炜光's avatar
罗炜光 9月 12, 2016

Notification的使用

一般步骤使用状态栏通知一般有4个步骤: 1、 通过getSystemService()方法获取NotificationManager服务。 2、 创建一个Notification.Builder对象,并为其设置各种属性。 3、 对Notification.Builder对象设置各种属性和事件信息,构造一个对Notification对象。 4、 通过NotificationManager类的notify()方法将通知发送到状态栏。     阅读全文
罗炜光's avatar
罗炜光 9月 08, 2016

BroadcastReceiver的使用

广播的分类 普通广播 有序广播 粘性广播 本地广播 定向广播     阅读全文
罗炜光's avatar
罗炜光 8月 27, 2016

ContentProvider的使用

概述1.ContentProvider为存储和读取数据提供了统一的接口2.使用ContentProvider,应用程序可以实现数据共享3.android内置的许多数据都是使用ContentProvider形式,供开发者调用的(如视频,音频,图片,通讯录等)     阅读全文
罗炜光's avatar
罗炜光 8月 23, 2016

系统属性

    阅读全文
罗炜光's avatar
罗炜光 8月 04, 2016

资源详解

    阅读全文
罗炜光's avatar
罗炜光 8月 01, 2016

Intent详解

Intent简介 Intent为组件的启动提供了一致的编程模型. 无论想要启动的组件是Activity, Service, 还是BroadcastReceiver, 都可以使用Intent封装启动的意图. 如果应用程序只是想启动具有某种特征的组件,并不想和某个具体的组件耦合,则可以通过在intent-filter中配置相应的属性进行处理     阅读全文
罗炜光's avatar
罗炜光 7月 29, 2016

Android中的值文件

值文件标签汇总 string string-array bool integer integer-array dimen declare-styleable eat-comment attr color style item plurals array fraction drawable     阅读全文
罗炜光's avatar
罗炜光 7月 21, 2016

Android的Drawable

Drawable汇总 animated-rotate animated-selector animated-vector animation-list bitmap clip color inset layer-list level-list nine-patch ripple rotate scale selector shape transition vector     阅读全文
罗炜光's avatar
罗炜光 7月 19, 2016