Accessing Room data in Broadcast Receiver

235 views Asked by At

In my android app, I have implemented Room architecture with repository and view model..

My app also use Broadcast receiver.

I want to access data of Room in my broadcast receiver..but view model can't be accessed as for that I need application context which I don't have in broadcast receiver..

So suggest a way how to access data from Room database.

Thankyou in advance..

0

There are 0 answers