title: Notification not starting a activity with action in android
body: <p>I 've put a button in the program .
  When clicked , a notification is made ​​.
  The following code runs properly , and a notification is made.</p>
  
  <pre><code>public class MainActivity extends Activity {
  
  @Override
  protected void onCreate(Bundle savedInstanceState) {
      super.onCreate(savedInstanceState);
      setContentView(R.layout.activity_main);
      Button create=(Button)findViewById(R.id.button_creat);
  
      create.setOnClickListener(new OnClickListener() {
  
          @Override
          public void onClick(View v) {
              displayNotification(getAppleationContext());
          }
      });
  
  }
   public void displayNotification(Context context) 
  {
  
    NotificationCompat.Builder mBuilder = new      NotificationCompat.Builder(this);
    mBuilder = new NotificationCompat.Builder(context)
    .setSmallIcon(R.drawable.ic_launcher)
    .setContentTitle("berhooz")
    .setContentText("ahmadi hastam")
    .setTicker("hello")
    .setAutoCancel(true);
  
      Intent notificationIntent = new Intent(context, SecoundActivity.class);
           notificationIntent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
           notificationIntent.addFlags(Intent.FLAG_ACTIVITY_SINGLE_TOP);//single top to avoid                //creating many activity stacks queue
    PendingIntent contentIntent = PendingIntent.getActivity(context, 0, notificationIntent, PendingIntent.FLAG_UPDATE_CURRENT);
    mBuilder.setContentIntent(contentIntent);
    notificationManager = (NotificationManager)getSystemService(Context.NOTIFICATION_SERVICE);
    notificationManager.notify(1, mBuilder.build());
  }
  </code></pre>
  
  <p>But I'd rather use this piece of code</p>
  
  <pre><code> Intent notificationIntent = new Intent(context, SecoundActivity.class);
  </code></pre>
  
  <p>I use the following code:
  (Call a activity using action)</p>
  
  <pre><code>Intent notificationIntent = new Intent("aa.bb.cc.dd");
  </code></pre>
  
  <p>But when I click on the Notification nothing happens !</p>
  
  <p>in AndroidManifest:</p>
  
  <pre><code> &lt;activity android:name="SecoundActivity"&gt;&lt;/activity&gt;
          &lt;intent-filter&gt;
              &lt;action android:name="aa.bb.cc.dd"&gt;&lt;/action&gt;
          &lt;/intent-filter&gt;
  </code></pre>