Service

2018-04-27  本文已影响0人  Junguo

startService(多次start,每次start,都会掉一次onStartCommand,)

1、Construct

2、onCreate

3、onStartCommand

stopService(如果Service没有被start,调用没反应)

1、onDestroy

bindService (多次bind没反应)

1、Construct

2、onCreate

3、onBinder

unBinderService(如果Service没有被bind,调用unBinder会报错,)

1、onBind

2、onDestroy(该Service没有被start,如果被start了,只会走unBinder)

上一篇 下一篇

猜你喜欢

热点阅读