![](https://img-blog.csdnimg.cn/20201014180756738.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
servcie
懵叶
成事不说,遂事不谏,既往不咎
展开
-
Android Service使用Messenger通信
直接上代码。 布局:<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:tools="http://schemas.android.com/tools" android:layout_width="match_parent" android:layout_heigh原创 2015-12-21 21:07:28 · 378 阅读 · 0 评论 -
Android Service两种启动方式
两种启动service的方式: ok,可以看出,service的生命周期为: onCreate(),onStartCommand(),onBind(),onUnbind(),onDestory()。 下面我们来直接上代码验证。 布局:<LinearLayout xmlns:android="http://schemas.android.com/apk/r原创 2015-12-21 20:29:08 · 504 阅读 · 0 评论