I need to be able to handle/catch Intents while my Activity is closed. So I am looking at either a Service or a BroadcastReceiver.
Is it possible to "receive" intents to a service itself? I tried to search, but could not find anything helpful.
With a BroadcastReceiver, I am not exactly sure how that works outside of an Activity. Does it depend on the Activity being open/running? Can it run by itself? Let's say that my Activity is killed by Android(or a task killer app), does the BroadcastReceiver still receive intents and process them?
I have used a BroadcastReceiver as a widget, but I do not want to use a widget this time.
My goal is to have the user open the Activity to set some options. From there, they would be able to close the Activity, but I would still be able to process Intents that were sent out by the system.
I am still fairly new to Android development, so I could be so far away from where I need to be.
Am I going about it wrong?