title: How to setup Alertbox from BroadcastReceiver
body: <p>I have implemented alarm in android app. Alarm is working fine. <code>Toast</code> message is visible.
  <strong>Now I want to make Alert Box Notification to user</strong>.</p>
  
  <p>Here is code from <code>ReceiverActivity</code> Class. which I tried </p>
  
  <pre><code>public class ReceiverActivity extends BroadcastReceiver{
  @Override
  public void onReceive(Context context, Intent intent) {
      // TODO Auto-generated method stub
  
  // Code....
  
  
      new AlertDialog.Builder(context)
      .setTitle("Alert Box")
      .setMessage("Msg for User")
      .setPositiveButton(android.R.string.ok, new DialogInterface.OnClickListener() {
          @Override
          public void onClick(DialogInterface arg0, int arg1) {
          // TODO Auto-generated method stub
              // some coding...
          }
      })
      .setNegativeButton(android.R.string.cancel, new DialogInterface.OnClickListener() {
          public void onClick(DialogInterface arg0, int arg1) {
              arg0.dismiss();
      }
  }).create().show();
  }
  </code></pre>
  
  <p>}</p>