I have AlarmReceiver(BrodcastReceiver
) that starts DownloadService(Service
) after check if service is not running state
context.startDownloadServiceIfNotRunning()// kotlin extension function check service state
after this line i am sending otto event to previously started service
BusStation.getBus().post(DownloadEvent()) // Actually this line fired before start of service
but download service is not receiving this event even it is registerd for event.
after Debugging i have found that Otto event is firing before service actually starts therefore it is not receiving any event
so is there any way to know when android Service is Started properly to Receive events by otto