在Android5.0以前可以通过隐式Intent方式启动其他App的Service,就跟Activity启动隐式Intent一样的. 但是在5.0以后,只能使用显示的Intent方式启动了. 启动其他App的Service,需要用到Intent的setComponent()方法.该方法需要传入ComponentName component 这个参数. 参数的解释:component, The name of the application component to handle the int…