2011年10月12日
摘要: 1. startService() 启动service (跨Activity存在) onCreate --> onStart() --> (重复调用startService()时) --> onStart() stopService() 停止service onDestroy()2. bindService() 启动service (依附于当前Activity) onCreate() --> onBind() unBindService() 或者 Activity 退出时 onDestroy()通常的做法是,结合IBinder, 用startService来启动一个Se 阅读全文
posted @ 2011-10-12 15:12 TroyZ 阅读(252) 评论(0) 推荐(0) 编辑