언어 설정

Menu
Sites
Language
Listener Application

I want to make a Listener Application that can listen to a few system( setting) changes and just display a text saying that this particualr setting has been changed in the main screen. I understand that the handing of the setting changes are done in OnSetting Changed() . However my query is that how can we display a text message in the main screen when my application is in the background?  Displaying a message while the application is active is possible by using the MessageBox class but how can we display the same message when our application is no longer in the foreground?

void MyApp::OnSettingChanged (Tizen::Base::String & key )

{
if ( key == L"http://tizen.org/setting/location.gps")
{
//Need to display the key in the main menu
}
}
Thanks,
Raju Khanal
Edited by: Brock Boland on 17 3월, 2014 Reason: Paragraph tags added automatically from tizen_format_fix module.

Responses

4 댓글
kimi
Hi Raju, You can either use a dynamic box application to display a detailed information of the updates happening in the application running in the background, in the main screen or you can display minimal textual information regarding the change via notifcation.(Refer https://developer.tizen.org/help/index.jsp?topic=%2Forg.tizen.native.apireference%2FclassTizen_1_1Shell_1_1NotificationManager.html). Kimi.
Raju Khanal
Hello Kimi, It would be enough for me if I can display minimal textual information. As per the link I used the following code : void MyApp::OnSettingChanged (Tizen::Base::String & key ) { if ( key == L"http://tizen.org/setting/location.gps") { Tizen::Shell::NotificationManager notiMgr; notiMgr.Construct(); notiMgr.Notify(L"GPS Mode Changed.", null); } } However I can't seem to read the notification anywhere. Where can the notification be read? I have included the permission for notification in the manifest file but still can't figure out any notification.Also can I use Notification Request for the same? NotificationRequest request; request.SetAlertText(L"GPS Mode Changed"); request.SetTitleText(L"GPS Mode Changed"); The above code I guess should set the TitleText in the status bar. But the same is not happening in my case. Thanks, Raju Khanal
kimi
Hi Raju, Your code void MyApp::OnSettingChanged (Tizen::Base::String & key ) { if ( key == L"http://tizen.org/setting/location.gps") { Tizen::Shell::NotificationManager notiMgr; notiMgr.Construct(); notiMgr.Notify(L"GPS Mode Changed.", null); } } works fine and the notification is seen on top of the screen and also will be present in the background screen which you can see on swiping down the home screen. Maybe your if() condition is always false.. Kimi.
Raju Khanal
Thanks Kimi!