title: Call notification from another class
body: <p>Given that in my application I need many notifications I have a class like that.</p>
  
  <pre><code>public class MyNotificationClass{
  
      NotificationManager mNotificationManager;
      NotificationCompat.Builder notificationBuilder;
      Context context;
  
      static final int NOTIFICA1 = 1;
      static final int NOTIFICA2 = 2;
  
      public MyNotificationClass(Context context) {
          // TODO Auto-generated constructor stub
          mNotificationManager = (NotificationManager) context.getApplicationContext().getSystemService(Context.NOTIFICATION_SERVICE);
          notificationBuilder = new NotificationCompat.Builder(context);
      }
  
      public void mostra(int Id) {
  
          switch(Id)
          {
          case NOTIFICA1:
              notificationBuilder.setContentTitle("Text01");
              notificationBuilder.setContentText("Text01");
              mNotificationManager.notify(NOTIFICA1, notificationBuilder.build());
              break;
          case NOTIFICA2:
              notificationBuilder.setContentTitle("Text02");
              notificationBuilder.setContentText("Text02");
              mNotificationManager.notify(NOTIFICA2, notificationBuilder.build());
              break;
          }
          notificationBuilder.setWhen(System.currentTimeMillis());
          notificationBuilder.setSmallIcon(R.drawable.ic_launcher);
          notificationBuilder.setDefaults(Notification.DEFAULT_SOUND | Notification.DEFAULT_LIGHTS );
      }
  
  }
  </code></pre>
  
  <p>If I wanted to call, for example, the notification number 1. How can I do?</p>