Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
sendBroadcast(intent2); stopSelf();
知道如何停止这个......因为即使在它停止之后它也在进行 REST 调用......
试试这个,希望对你有帮助
stopService(intent2).
或在启动和停止服务后查看此链接