Search code examples
androidsqlitebroadcastreceiver

Access database from broadcast?


Can I access any database in the broadcast receiver? I want to get contact name from the contacts number inside the broadcast receiver.


Solution

  • Only restriction is that you have 10 seconds timeout in Brodcast Reveiver. So it is advised that long going actions to be executed in started service/asyncTask.