Binding service by BroadcastReceiver

后端 未结 8 1064
春和景丽
春和景丽 2021-02-12 15:32

My Application uses a service that is started by a BOOT_COMPLETE BroadcastReceiver, in run i\'m getting an error

my code:

public class projet extends Br         


        
相关标签:
8条回答
  • 2021-02-12 16:13

    BroadcastReceiver cann't bindService. You can get a good solution in the following URL:

    Android - Start service on boot

    0 讨论(0)
  • 2021-02-12 16:15

    read http://developer.android.com/reference/android/content/BroadcastReceiver.html, section Receiver Lifecycle

    0 讨论(0)
提交回复
热议问题