简体   繁体   中英

Background service crashes the app after killing application

我在我的应用程序中使用后台服务来获取位置更新,一切正常,但是当我终止该应用程序(从最近的屏幕上)时,它显示一条消息“不幸的是应用程序已停止”,同时返回了粘性服务,我意识到杀死该应用程序后,我的后台服务会重新启动,但会使我的应用程序崩溃

your service and processes (Threads run inside your service) will remain continuous. Redirecting you to the same question Continue Service even if application is cleared from Recent app

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM