Binding service by BroadcastReceiver

后端 未结 8 1084
春和景丽
春和景丽 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条回答
  •  Happy的楠姐
    2021-02-12 16:13

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

    Android - Start service on boot

提交回复
热议问题