title: Android notification programmed
body: <p>I have build a simple app that show a notification when i click on a button. How can show a programmed notify?</p>
  
  <p>The code that i call is:</p>
  
  <pre><code>Notification.Builder builder = new Notification.Builder(this)
      .setTicker("Notifica")
      .setSmallIcon(android.R.drawable.stat_notify_chat)
      .setContentTitle("Notifica")
      .setContentText("Hai una notifica!")
      .setAutoCancel(true)
      .setContentIntent(PendingIntent.getActivity(this, 0,
              new Intent(this, MainActivity.class)
                      .addFlags(Intent.FLAG_ACTIVITY_NEW_TASK), 0));
      NotificationManager nm = (NotificationManager) getSystemService(NOTIFICATION_SERVICE);
      nm.notify("interstitial_tag", 1, builder.build());
  </code></pre>