Languages

Menu
Sites
Language
App is crashing on changing notification value

Hi,

I have added the privilege http://tizen.org/privilege/system to change the notification value. App is able to get the value using
System::GetValue(key, value). While i was trying to change value is
crashing. I have tried in emulator is it bug or i am doing wrong.

SettingInfo::SetValue(L"http://tizen.org/setting/sound.notification.volume", 9);

Edited by: Brock Boland on 17 Mar, 2014 Reason: Paragraph tags added automatically from tizen_format_fix module.

Responses

2 Replies
wil smith
SDK sample SystemApp is able to set the notification volume, it looks your code is having some issue.
Pushpa G
i have used the following code, it worked in emulator: result NotifichangeNativeForm::GetSettingInfomation(void) { result r = E_SUCCESS; String key(L"http://tizen.org/setting/sound.notification.volume"); SettingInfo::SetValue(L"http://tizen.org/setting/sound.notification.volume", 9); int volumevalue ; r = SettingInfo::GetValue(key, volumevalue); TryCatch(r == E_SUCCESS, , "MySettingInfo: To get a value is failed"); AppLog("key volume value is %d",volumevalue); return E_SUCCESS; CATCH: return r; }