zoukankan      html  css  js  c++  java
  • [Android Pro] Service (startservice , bindservice , unbindservice, stopService)

    1: startService -------stopService (this will call onDestroy)

    2: bindService -------unbindService    (this will call onDestroy)

    3: startService---bindService----stopService (nothing happen,  shoud call unbindService)

    4: startService---bindService----unbundService --- stopService (this will call onDestroy)

    5: startService---bindService----stopService-----unbindService  (this will call onDestroy)

    6: bindService---startService---stopService (nothing happen,  shoud call unbindService)

    7: bindService---startService---unbindService----stopService  (this will call onDestroy)

    7: bindService---startService----stopService---unbindService  (this will call onDestroy)

  • 相关阅读:
    UIScrollView
    xcode debug
    ios 开发小技巧
    xcode调试
    Objective-C的反射机制
    git 命令
    iOS block的一些理解
    iOS 开发常用宏
    iOS 常用函数
    转:支付宝系统架构(内部架构图)
  • 原文地址:https://www.cnblogs.com/0616--ataozhijia/p/4912216.html
Copyright © 2011-2022 走看看