关于Service所需要知道的大部分...

  • 服务有哪两种启动方式?对应的需要重写的回调方法有哪些?各自的生命周期是怎样的?
  • 如何启动、终止服务?
  • IntentService相对于Service的特点?实现的回调方法?使用的场景?
  • HandlerThread和Thread的区别?getLooper和getMessage方法?
  • onStartCommand方法的返回值有哪些?含义是什么?
  • 服务与其他组件之间的通信与pendingIntent的关系
  • stopService传入什么参数?
  • Notification与前台服务的联系
原文地址:https://www.cnblogs.com/Russel/p/5998139.html