Runtime exception Android O with boot_completed

前端 未结 2 1593
温柔的废话
温柔的废话 2020-12-01 08:01

I\'m trying to start an IntentService within my BOOT_COMPLETED receiver, but in Android O (API 26) I get:

java.lang.RuntimeException: 
java.lang.IllegalState         


        
2条回答
  •  旧时难觅i
    2020-12-01 08:28

    You may want to check the following section of the Android O behaviour changes documentation https://developer.android.com/preview/features/background.html#services

    It now limits when the app is able to start background services.

提交回复
热议问题