I need to send a variable from an Activity
to a BroadcastReceiver
registered on Manifest.
My Scenario:
I have a file list that can be downloaded by user and when he clicks the app calls DownloadManager
, and put a flag “PENDENT” in the database. This list is managed by an Activity
In my AndroidManifest
I have registred a BroadcastReceiver
with the filter android.intent.action.DOWNLOAD_COMPLETE
and when my BroadcastReceiver
was called i want change this register from "PENDENT" to “DOWNLOADED”.
Observation: Maybe my approach is not good and if this is the case, I accept sugestions.
Thanks in advance!