title: Pending Intent not working
body: <p>I know the question i am asking is a duplicate. But i have tried all sorts of things. All i want is, MainActivity class to get called when i click on the notification. My code is,</p>
  
  <pre><code>private void sendNotification(String msg) 
  {
      Log.d(TAG, "Preparing to send notification...: " + msg);
      int requestID = (int) System.currentTimeMillis();
      mNotificationManager = (NotificationManager) this.getSystemService(Context.NOTIFICATION_SERVICE);
      Intent notificationIntent = new Intent(this,MainActivity.class);
      notificationIntent.setFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP | Intent.FLAG_ACTIVITY_SINGLE_TOP); 
  
      PendingIntent contentIntent = PendingIntent.getActivity(this, requestID,notificationIntent, PendingIntent.FLAG_UPDATE_CURRENT);
  
      NotificationCompat.Builder mBuilder = new NotificationCompat.Builder(this)
                                              .setSmallIcon(R.drawable.icon)
                                              .setContentTitle("Hashtag")
                                              .setContentText(msg)
                                              .setStyle(new NotificationCompat.BigTextStyle().bigText(msg))
                                              .setContentIntent(contentIntent);
      mBuilder.setVibrate(new long[] { 1000, 1000, 1000, 1000, 1000 });
      mBuilder.setLights(Color.RED, 3000, 3000);
      mBuilder.setSound(Settings.System.DEFAULT_NOTIFICATION_URI);
      mBuilder.setAutoCancel(true);
  
      mNotificationManager.notify((int)Calendar.getInstance().getTimeInMillis(), mBuilder.build());
      Log.e("NEW NOTIFICATION ID IS --- ", String.valueOf((int)Calendar.getInstance().getTimeInMillis()));
      Log.d(TAG, "Notification sent successfully.");
  }
  </code></pre>
  
  <p>My MainActivity Class is as follows,</p>
  
  <pre><code>public void onCreate(Bundle savedInstanceState)
  {
      super.onCreate(savedInstanceState);
      loadUrl(launchUrl);
      Toast.makeText(getApplicationContext(), "this is my Toast!!!",Toast.LENGTH_LONG).show();
  }
  </code></pre>
  
  <p>I want the toast to be called. Please people.. help me out !! This has been killing me for the whole day..!!!</p>