private void handleMessage(final Intent intent) { String action = intent.getAction(); if (checkRequestAction(action)) { onRequest(intent); } else if (checkManagerUninstall(intent)) { onManagerUninstalled(); } else if (checkManagerLaunched(action)) { onManagerLaunched(); } else if (checkManagerTerminated(action)) { onManagerTerminated(); } else if (checkManagerEventTransmitDisconnect(action)) { onManagerEventTransmitDisconnected(intent.getStringExtra(IntentDConnectMessage.EXTRA_ORIGIN)); } else if (checkDevicePluginReset(action)) { onDevicePluginReset(); } else if (checkDevicePluginEnabled(action)) { mIsEnabled = true; onDevicePluginEnabled(); } else if (checkDevicePluginDisabled(action)) { mIsEnabled = false; onDevicePluginDisabled(); } }