how can i access database from broadcast receiver in android?
<p>i am developing a alarm application using <code>BroadcastReceiver</code>. Here i need to check whether the alarm is on or off from the database. So i need to check the status of the alarm when the broadcast event came. I have to put the database access code in <code>BroadcastReceiver</code> class <code>onReceive()</code> method. Here suggest me if there is any way to access the data from the <code>BroadcastReceiver</code></p>

<p>thanks in advance</p>
