Can a System application register for events?
Hello,
I have an S60 UI application which needs to run as a system application. That is:
CEikonEnv::Static()->SetSystem( ETrue );
... to ensure this app doesn't close as the media card is inserted and removed. See [url]http://wiki.forum.nokia.com/index.php/TSS000794_-_Monitoring_MMC_insertion_/_removal_events[/url] for details.
Unfortunately, this approach fails Symbian Signing: - "System Events and Task List Compliance". The explicit test is:
1. Switch focus to Task List (by holding down the S60 Applications key).
2. Close application from Task List using the ‘c’ or back key.
Is there some way to register for this system event and determine if it is a card removal which I need to ignore or the key event which I want to address?
[aside: At this point, the astute reader is wonder why I did write this as a console application. Here(
[url]http://discussion.forum.nokia.com/forum/showthread.php?p=426922#post426922[/url]) is a post which talks about the pitfalls. While it sounds possible, it sounds difficult too. The deadline will not give me time to revisit this issue. ]
Thanks for your time and consideration.
Sincerely,
John
Re: Can a System application register for events?
Hey John,
Do you want to stop your application being able to be closed by other applications or just prevent it being closed by the mmc card event.
For example, loading the webkit browser will also close your app under some cases as it requires a LOT of memory.
Anyway you can apply for a waiver for that test case if its in keeping with the application design and functionality
Re: Can a System application register for events?
Hello Paul,
Thanks for the feedback. It's helpful as always. Since nothing good or holy can achieved by a user closing this application, I'm going to recommend my client apply for waiver.
-jk