#include <system/media_key.h>
#include <bluetooth.h>
+#include <FIo.h>
#include <FBaseSysLog.h>
#include <FSys_DeviceManagerEventProvider.h>
__pCommunicationDispatcher = _CommunicationDispatcher::GetInstance();
SysTryCatch(NID_SYS, __pCommunicationDispatcher != null, r = E_SYSTEM, E_SYSTEM, "_CommunicationDispatcher initiate is failed.");
- r = __pCommunicationDispatcher->AddCommunicationEventListener(*this);
- SysTryCatch(NID_SYS, r == E_SUCCESS, r = E_SYSTEM, E_SYSTEM, "It is failed to add event listener.");
-
+ if(Tizen::Io::File::IsFileExist(L"/opt/usr/etc/common_service_for_devicemanager") != true)
+ {
+ r = __pCommunicationDispatcher->AddCommunicationEventListener(*this);
+ SysTryCatch(NID_SYS, r == E_SUCCESS, r = E_SYSTEM, E_SYSTEM, "It is failed to add event listener.");
+ }
r = __interestedPidList.Construct();
SysTryCatch(NID_SYS, r == E_SUCCESS, r = E_SYSTEM, E_SYSTEM, "It is failed to initiate bluetooth headset application list.");
CATCH: