* String telUri = L"tel:12345678900";
*
* AppControl* pAc = AppManager::FindAppControlN(L"tizen.phone", L"http://tizen.org/appcontrol/operation/dial");
-* if(pAc)
+* if(pAc)
* {
* pAc->Start(&telUri, null, null, null);
* delete pAc;
* tizen.email, tizen.filemanager, tizen.gallery, tizen.imageviewer, tizen.mmsmessages, and tizen.smsmessages.
*
* @since 2.0
+ * @privlevel public
+ * @privilege %http://tizen.org/privilege/application.launch
*
* @return An error code
* @exception E_SUCCESS The method is successful.
+ * @exception E_PRIVILEGE_DENIED The application does not have the privilege to call this method.
* @exception E_SYSTEM A system error has occurred.
* @exception E_INVALID_OPERATION The application control is not permitted to call this method.
* @remarks This method is asynchronous.
result
AppControl::Stop(void)
{
+ result r = _AccessController::CheckUserPrivilege(_PRV_APPLICATION_LAUNCH);
+ SysTryReturnResult(NID_APP, !IsFailed(r), E_PRIVILEGE_DENIED, "The application does not have the privilege to call this method.");
+
SysAssertf(__pAppControlImpl != null, "Instance is not constructed properly.");
return __pAppControlImpl->Stop();
}