-
-
Notifications
You must be signed in to change notification settings - Fork 2.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
关于启动service的问题 #55
Comments
目前没发现什么方式能直接实现……间接实现的话,在 service stop 的时候输出个 log,然后监控下 log? 😆 |
恩,这个方法试了,可行是可行,就是面对批处理文件的话,就不太好处理了 |
可以试试双进程 / 双线程的思路:
|
恩,目前没有好的办法只能这么处理了,顺便咨询一下,android开发者可以向Terminal打印日志么 |
你是指 Android 应用程序吗?我不知道有这样的方法。 System.out.println 这样的也被输出到 logcat 了。我推测应该不能行,terminal 可以起很多进程实例,程序怎么知道要输出到哪一个呢? |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
在终端里 adb shell am startservice 启动服务,在我的service开启了线程,发现没有等待我service执行完毕,终端就停止了(可以执行下一条指令),有什么方法保持同步或者监听service stop了
The text was updated successfully, but these errors were encountered: