how can i access database from broadcast receiver in android?

后端 未结 1 1752
予麋鹿
予麋鹿 2021-01-24 12:16

i am developing a alarm application using BroadcastReceiver. Here i need to check whether the alarm is on or off from the database. So i need to check the status of

1条回答
  •  清酒与你
    2021-01-24 12:58

    There is no real problem accessing the DB from the BroadcashReceiver. You will need the context, which you have as part of the BroadcastReceiver onReceive method signature and that's it. If you're facing a specific problem, please tell us what it is

    0 讨论(0)
提交回复
热议问题