Symbian待机界面UID

来源:互联网 发布:淘宝怎么一件代发 编辑:程序博客网 时间:2024/06/10 01:36
 

Amit Kankani's Forum Nokia Blog

Inconsistent standby screen UID

amitkankani | 27 October, 2008 15:38

Hi all,

this is a very trivial issue I have faced....... and its regarding the UID of standby screen, or the phone default screen.

The problem I noticed is that the UIDs are different for different versions, and worse yet, different for different Feature packs too !!! and to add to that, no constants define which could have easily taken care of this....

well let me get into details:

The UID of standby screen (the process is called Phone) on 2nd edition is: 0x100058b3

The UID of standby screen (the process is called Standby Mode) on 3rd edition and 3rd edition FP1 is: 0x101fd64c

The UID of standby screen (the process is called Standby Mode) on 3rd edition FP2 is:0x102750F0

and I don't yet know what it is for 5th Edition.

So now if anyone wants to use the UID of standby screen, then one needs to define these with appropriate macros and use them. May be something like this:

#ifdef __SERIES60_3X__
const TUid KUidStandBy = { 0x101fd64c }; // For 3rd Edition
const TUid KUidStandBy_FP2 = { 0x102750F0 }; // For 3rd edition Emulator and FP2 devices
#else // #ifdef __SERIES60_3X__
const TUid KUidStandBy = { 0x100058b3 }; // For 2nd Edition
#endif // #ifdef __SERIES60_3X__

and then use it... 

It would be much better if there was a constant defined by Symbian headers which could be used, so that there wouldn't be any problems like this .....

Hope Symbian does this from next version of their SDKs, or have already done it on 5th Edition ? I don't know about this on 5th Edition, probably some of you could comment....