今天在处理程式中下指令的时候
发现开启 service 的指令 adb shell start-service xxxx
有某些版本的手机无法执行
开启 cmd 下 adb shell am
才发现其中的差异
在 8.0 以下的版本
只能使用 startservice (中间没有"-")
在 8.0 含以上的版本
startservice 和 start-service 都可以使用
以上给大家参考
今天在处理程式中下指令的时候
发现开启 service 的指令 adb shell start-service xxxx
有某些版本的手机无法执行
开启 cmd 下 adb shell am
才发现其中的差异
在 8.0 以下的版本
只能使用 startservice (中间没有"-")
在 8.0 含以上的版本
startservice 和 start-service 都可以使用
以上给大家参考