This question shows research effort; it is useful and clear
0
This question does not show any research effort; it is unclear or not useful
Bookmark this question.
Show activity on this post.
我在android中做了一个活动。从按钮单击的那个活动中,我正在调用一个意图,在该意图中我调用了一个 AIR 应用程序。与此同时,我正在启动包含与 AIR 应用程序的套接字通信的服务。但是当我从 AIR 回到活动时,服务没有停止。它在后台运行。我使用过 onDestroy、startService、stopService 但无法正常工作。任何人都可以建议我从 AIR 到应用程序的后退导航如何停止服务。所以如果我想再次从活动切换到 AIR,我可以再次刷新它。