Multiple notification click launching a same activity android
<p><strong>I have a notification set up :</strong> </p>

<pre><code>private void sendNotificationForCancellation(String appointmentId, String title, String message) {
        //AppController.getSharedPreferences().edit().putString(Constants.CALL_CASE_ID, notifObject.getCaseDetails().getCaseID()).commit();
        Intent intent = new Intent(this, ActCallRequestsDetail.class);
        intent.putExtra("appointment_id", appointmentId);
        intent.putExtra("isAppIdAvailable", true);
        intent.addFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP);

        PendingIntent pendingIntent = PendingIntent.getActivity(this, 0, intent, PendingIntent.FLAG_ONE_SHOT);

        Uri defaultSoundUri = RingtoneManager.getDefaultUri(RingtoneManager.TYPE_NOTIFICATION);
        NotificationCompat.Builder notificationBuilder = new NotificationCompat.Builder(this)
                .setSmallIcon(R.drawable.ic_stat_note_plus)
                .setLargeIcon(BitmapFactory.decodeResource(this.getResources(), R.drawable.app_icon))
                .setContentTitle(title)
                .setStyle(new NotificationCompat.BigTextStyle().bigText(message))
                .setContentText(message)
                .setAutoCancel(true)
                .setSound(defaultSoundUri)
                .setContentIntent(pendingIntent);

        NotificationManager notificationManager =
                (NotificationManager) getSystemService(Context.NOTIFICATION_SERVICE);

        Random generator = new Random();
        notificationManager.notify(generator.nextInt(), notificationBuilder.build());
    }
</code></pre>

<p>On click of notification it opens a activity</p>

<p><strong>Scenario-1:</strong></p>

<ul>
<li>It is working fine when I have a single notification.</li>
</ul>

<p>.
<strong>Scenario-2:</strong> </p>

<ul>
<li>Assume 2 notifications generated from above notification setup first
notification click, it is opening the activity Now i am there in the
opened activity(<code>ActCallRequestsDetail.class</code>) When I click the
second notification, nothing happens the activity
(<code>ActCallRequestsDetail.class</code>) is not refreshed</li>
</ul>

<p>.
<strong><em>How to solve the Scenario-2</em></strong> </p>