Mostrar caixa de diálogo usando PendingIntent

Estou trabalhando no lembrete do Calender Events. Não há lembretes de eventos nativos no Calendário para que o usuário instale diferentes aplicativos de calendário.

Agora, esses aplicativos podem ser diferentes para lembrar que eventos como notificações de lembretes podem ser exibidos. Agora eu quero que eu defina um evento programaticamente nesses aplicativos de calendário de eventos e no tempo alcançado não mostrar qualquer notificação, em vez de uma mensagem pop-up será mostrada com alarme como som. Eu uso um código desse site. Está funcionando, mas mostrando lembretes em forma de notificações.

Aqui está o código:

OnReceive

void doReminderWork(Intent intent) {
    Long rowId = intent.getExtras().getLong(RemindersDbAdapter.KEY_ROWID);

    NotificationManager mgr = (NotificationManager)getSystemService(NOTIFICATION_SERVICE);

    Intent notificationIntent = new Intent(this, ReminderEditActivity.class); 
    notificationIntent.putExtra(RemindersDbAdapter.KEY_ROWID, rowId); 

    PendingIntent pi = PendingIntent.getActivity(this, 0, notificationIntent, PendingIntent.FLAG_ONE_SHOT); 

    Notification note=new Notification(android.R.drawable.stat_sys_warning, getString(R.string.notify_new_task_message), System.currentTimeMillis());
    note.setLatestEventInfo(this, getString(R.string.notify_new_task_title), getString(R.string.notify_new_task_message), pi);
    note.defaults |= Notification.DEFAULT_SOUND; 
    note.flags |= Notification.FLAG_AUTO_CANCEL; 


    int id = (int)((long)rowId);
    mgr.notify(id, note);
}

Agora quero mostrar uma caixa de diálogo em vez de uma notificação, portanto, como é possível usar essas linhas de código, essa intenção pendente deve ser usada na caixa de diálogo.

 Intent notificationIntent = new Intent(this, ReminderEditActivity.class); 
notificationIntent.putExtra(RemindersDbAdapter.KEY_ROWID, rowId); 

PendingIntent pi = PendingIntent.getActivity(this, 0, notificationIntent, PendingIntent.FLAG_ONE_SHOT); 

questionAnswers(1)

yourAnswerToTheQuestion