title: android - How to show a dialog when click on notification
body: <p>I get notification in my application through BroadcastReceiver, The question is , How can I parse data to an activity and make a dialog with the received data ? </p>
  
  <p>this is my code but when I click on the notification , nothing happens :</p>
  
  <pre><code>NotificationManager notificationManager = (NotificationManager) ctx.getSystemService(Context.NOTIFICATION_SERVICE);
  
          Intent notificationIntent = new Intent(Intent.ACTION_VIEW);
          notificationIntent.setData(Uri.parse(link));
          PendingIntent pending = PendingIntent.getActivity(ctx, 0, notificationIntent, Intent.FLAG_ACTIVITY_NEW_TASK);
  
          Notification myNotification = new NotificationCompat.Builder(ctx)
                  .setSmallIcon(R.drawable.ic_launcher).setAutoCancel(false).setLargeIcon(remote_picture)
                  .setContentTitle(onvan).setStyle(new NotificationCompat.BigTextStyle().bigText(msg))
                  .setContentText(msg).setContentIntent(pending).build();
          notificationManager.notify(1, myNotification);
  </code></pre>
  
  <p>I've some variablese like link , msg, onvan that contains my data and I need to send these variables to an activity and make a dialog . </p>
  
  <p>How can I do so ? </p>