how Open Dialog from BroadcastReceiver class
<p>I want to open dialog from BroadcastReceiver but it gives an error.</p>

<p>Here is my code:</p>

<pre><code>final Dialog mydata= new Dialog(context);
    mydata.getWindow().setFlags(
            WindowManager.LayoutParams.FLAG_ALT_FOCUSABLE_IM,
            WindowManager.LayoutParams.FLAG_ALT_FOCUSABLE_IM);
    mydata.setTitle("   Library Information ");
    LayoutInflater li = (LayoutInflater) context
            .getSystemService(Context.LAYOUT_INFLATER_SERVICE);
    View dialogView = li.inflate(R.layout.singup, null);
    mydata.setContentView(dialogView);
    mydata.show();

java.lang.RuntimeException: Unable to start receiver com.om.dave.MyBroadcastReceiver: android.content.res.Resources$NotFoundException: Resource ID #0x7f030001
</code></pre>

<p>How do I open dialog  Broadcastreceiver?</p>
