title: Why is my NotificationListenerService not working?
body: <p>I have implemented a NotificationListenerService, yet it is not working. Here is the service:</p>
  
  <pre><code>public class NotificationListener extends NotificationListenerService {
  
  @Override
  public void onCreate() {
      Log.d("MYAPP", "Created");
  }
  
  @Override
  public IBinder onBind(Intent intent) {
      return null;
  }
  
  @Override
  public void onNotificationPosted(StatusBarNotification sbn) {
      Log.d("MYAPP", "Notification");
  }
  
  }
  </code></pre>
  
  <p>I have implemented this in my manifest file:</p>
  
  <pre><code>&lt;service android:name="com.rodrigopontes.whatsappbubbles.NotificationListener"
           android:label="Test"
           android:permission="android.permission.BIND_NOTIFICATION_LISTENER_SERVICE" &gt;
      &lt;intent-filter&gt;
           &lt;action android:name="android.service.notification.NotificationListenerService" /&gt;
      &lt;/intent-filter&gt;
  &lt;/service&gt;
  </code></pre>
  
  <p>This is how I initialize it from my MainActivity:</p>
  
  <pre><code>@Override
  protected void onCreate(Bundle savedInstanceState) {
      super.onCreate(savedInstanceState);
      setContentView(R.layout.main_activity);
      startService(new Intent(this, NotificationListener.class));
  }
  </code></pre>
  
  <p>Thank you for the help!</p>