title: Notification does not correctly work (Android)
body: <p>My notification does not correctly work. When my app is open and I get notification -> I click and I go to activity what I need. But when my app is closed and get notification -> I click this notification -> go to home activity, not activity what I need. </p>
  
  <p>For example I have <code>HomeActivity</code>, <code>NotificationActivity</code>. When my app is open and I have notification I go to <code>NotificationActivity</code> but when my app is closed and I click I go to <code>HomeActivity</code>(I don need go to this place).</p>
  
  <pre><code>count++;
  PowerManager pm = (PowerManager) ctx.getSystemService(Context.POWER_SERVICE);
                  PowerManager.WakeLock wl = pm.newWakeLock(PowerManager.FULL_WAKE_LOCK | PowerManager.ACQUIRE_CAUSES_WAKEUP, "TAG");
                  wl.acquire(15000);
  
                  NotificationCompat.Builder mBuilder;
                  mBuilder = new NotificationCompat.Builder(ctx);
  
                  mBuilder.setSmallIcon(R.drawable.notification); 
                  mBuilder.setLargeIcon(BitmapFactory.decodeResource(getResources(), R.drawable.icon));
  mBuilder.setVibrate(new long[]{1000, 1000});
                  mBuilder.setTicker(name);
                  mBuilder.setContentText(message);
                  mBuilder.setAutoCancel(true);
                  mBuilder.setDefaults(Notification.DEFAULT_ALL);
                  mBuilder.setStyle(new NotificationCompat.BigTextStyle().bigText(message));
  
  Intent i = new Intent(ctx, NotificationActivity.class); 
   i.setFlags(Intent.FLAG_ACTIVITY_SINGLE_TOP);
   i.setFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP);
  
   PendingIntent resultPendingIntent =
                          PendingIntent.getActivity(
                                  ctx,
                                  count,
                                  i,
                                  PendingIntent.FLAG_UPDATE_CURRENT);
  
  
                 mBuilder.setContentIntent(resultPendingIntent);
                 NotificationManager myNotificationManager = (NotificationManager)
                         ctx.getSystemService(ctx.NOTIFICATION_SERVICE);
  
                  myNotificationManager.notify(count, mBuilder.build());
  </code></pre>