开发者

Send data after ACTION_SHUTDOWN is received

开发者 https://www.devze.com 2023-01-01 20:55 出处:网络
I know that the apps receive a ACTION_SHUTDOWN broadcast event when the device is shutting down. When an application receives the shutdown, is there still an opportunity to send da开发者_如何学Python

I know that the apps receive a ACTION_SHUTDOWN broadcast event when the device is shutting down. When an application receives the shutdown, is there still an opportunity to send da开发者_如何学Pythonta packets out, or does android block such attempts(or does the platform tear down the network stack before it can go out).


It turns out that you can still send out some data packets after receiving the ACTION_SHUTDOWN event before the phone dies completely.

0

精彩评论

暂无评论...
验证码 换一张
取 消