title: alertdialog when there is a missed call
body: <p><strong>alertdialog when there is a missed call</strong>
  I want to vibrate telephone when there is a missed call and display the dialogallert to stop the vibration</p>
  
  <p>To use the dialog I'm using this code</p>
  
  <pre><code> AlertDialog.Builder alertDialog = new AlertDialog.Builder(MainActivity.this);
                              alertDialog.setTitle("Call");
                              alertDialog.setMessage("show this?");
  
                              // "Yes" Button
                              alertDialog.setPositiveButton("YES", new DialogInterface.OnClickListener() {
                                  public void onClick(DialogInterface dialog,int which)
                                 {
  
                                  Toast.makeText(getApplicationContext(), "You clicked                        YES", Toast.LENGTH_SHORT).show();
                                  }
                              });
  
                              //  "NO" Button
                              alertDialog.setNegativeButton("NO", new DialogInterface.OnClickListener() {
                                  public void onClick(DialogInterface dialog, int which) {
                                  // Write your code here to invoke NO event
                                  Toast.makeText(getApplicationContext(), "You clicked NO", Toast.LENGTH_SHORT).show();
                                  dialog.cancel();
                                  }
                              });
  
  
                              alertDialog.show();
  </code></pre>