title: How can I display a dialog from an Android broadcast receiver?
body: <p>Ideally, I do not want to start an activity to do this. When the WiFi connection is lost, my app needs to close because this is a fatal error for us. I want to display an error message and have the user press an Ok button and then exit the app. What is the best way to go about this?</p>
  
  <p>Thanks!</p>