How to use a broadcast receiver ror background services

How to use a broadcast receiver ror background services