@Override public IBinder onBind(Intent intent) { switch (intent.getAction()) { case App.ACTION_BIND_MEDIA_CONTROL_SERVICE: if (!Device.hasKitKatApi() && !Device.hasLemonCakeApi()) { throw new RuntimeException("Required Android API version 19!"); } return mBinder; default: sService = this; // What is the idea of init notification? // Well the main goal is to access #getActiveNotifications() // what seems to be not possible without dirty and buggy // workarounds. NotificationPresenter.getInstance().tryStartInitProcess(); return super.onBind(intent); } }