title: Alert Dialog not Showing . Only a Blank white page is coming
body: <p>Folks,</p>
  
  <p>I have created a dialog fragment which will show a Dialog with Ringtone . But, Ringtone is playing and a White Blank page is coming .</p>
  
  <p>Please guide me where I am growing wrong .</p>
  
  <p>AlarmDialog.java</p>
  
  <pre><code>public class AlarmDialogPopUp extends Activity {
  
      Ringtone ringtone;
      Long rowId;Constants.TableTypes fragType;
  
  
      @Override
      public void onCreate(Bundle savedInstanceState) {
          super.onCreate(savedInstanceState);
          final Activity activity = this;
  
          Intent intent = getIntent();
          rowId = intent.getExtras().getLong(DatabaseHandler1.KEY_ID);
          fragType = (Constants.TableTypes) intent.getExtras().get(DatabaseHandler1.fragmentidenifier);
  
  
          // Get the alarm ID from the intent extra data
  
          Uri uri = RingtoneManager.getDefaultUri(RingtoneManager.TYPE_ALARM);
          ringtone = RingtoneManager.getRingtone(AlarmDialogPopUp.this, uri);
          ringtone.play();
  
           }
          @Override
          protected Dialog onCreateDialog ( int id)
          {
              super.onCreateDialog(id);
  
              // Build the dialog
              final AlertDialog.Builder alert = new AlertDialog.Builder(this);
  
              alert.setTitle("ALARM REMINDER");
              alert.setMessage("Check Your Reminder");
              alert.setCancelable(false);
  
              alert.setPositiveButton("Dismiss", new DialogInterface.OnClickListener() {
                  public void onClick(DialogInterface dialog, int whichButton) {
                      ringtone.stop();
                      // Constants.TableTypes fragType = (Constants.TableTypes) intent.getExtras().get(DatabaseHandler1.fragmentidenifier)
  
                      Intent intent = new Intent(AlarmDialogPopUp.this, PostClickNotificationActivity.class);
                      //intent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK );
                      //getApplicationContext().startActivity(notificationIntent);
                      intent.putExtra(DatabaseHandler1.KEY_ID, rowId);
                      intent.putExtra(DatabaseHandler1.fragmentidenifier, fragType);
                      startActivity(intent);
  
                      AlarmDialogPopUp.this.finish();
  
                  }
  
  
              });
  
              // Create and return the dialog
              AlertDialog dlg = alert.create();
              //dlg.show();
              dlg.show();
              return dlg;
          }
      }
  </code></pre>
  
  <p>I have tried create method, show() everything as mentioned in other posts . But, Its not working . It rings and a blank page comes .</p>