android开发
徽州风韵
这个作者很懒,什么都没留下…
展开
-
Service的学习(一)
介绍:service在后台执行,没有与用户交互的界面,常见的例子:音乐播放器。 启动的方式: (1)startService():调用者和服务之间没有联系,即使调用者退出了,服务仍然进行[onCreate()->onStartCommand()->startService()->onDestory()],主要用于启动一个服务执行后台任务,Service和访问者之间不进行通信、数据交换,停止服务原创 2013-04-04 14:58:25 · 501 阅读 · 0 评论 -
Service学习(二)之bindService 的实现
(1)创建一个Service: package com.syz.bindservice; import android.app.Service; import android.content.Intent; import android.os.Binder; import android.os.IBinder; import android.util.Log; public class原创 2013-04-04 16:24:50 · 587 阅读 · 0 评论 -
Notification介绍
Notification是显示在手机状态栏的信息——手机状态栏位于手机屏幕的最上方,那里一般显示手机当前的网络状态、电池状态、时间等,Notification所代表的是一种具有全局效果的通知,程序一般通过NotificationManager服务来发送Notificaton。下面介绍如何实现: (一)创建notification,与其相关的两个类: (1)Notification(icon,t原创 2013-04-05 13:40:31 · 602 阅读 · 0 评论