I want to open dialog from BroadcastReceiver but it gives an error.
Here is my 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
How do I open dialog Broadcastreceiver?