Symbian 手机平台开发经验总结
2010-06-22 03:00:00 来源:WEB开发网1、获取IMSI号、手机版本等
CTelephony:GetSubscriberId()
CTelephony:GetPhoneId()
CTelephony:Version()
2、获取屏幕尺寸
TSize CEikConsoleScreen::ScreenSize
3、更改ListBox字体
方法1:
_LIT(KFontName,"Courier");
TFontSpec fontSpec;
fontSpec.iTypeface.iName=KFontName;
fontSpec.iFontStyle.SetStrokeWeight(EStrokeWeightBold);
fontSpec.iHeight=100;
CFont * iFont;
CCoeEnv::Static()->ScreenDevice()->GetNearestFontInTwips(iFont,fontSpec);
CColumnListBoxData * data =
( static_cast
(iListBox->ItemDrawer()))->ColumnData();
data->SetColumnFontL(1,iFont);
方法2:
data->SetColumnFontL(1,LatinPlain12());
方法3:
const CFont * iFont1;
const CFont * iFont2;
iFont1 = AknLayoutUtils::FontFromId(EAknLogicalFontPrimaryFont);//大字体
iFont2 = AknLayoutUtils::FontFromId(EAknLogicalFontPrimarySmallFont);//小字体
data->SetColumnFontL(1,iFont2);
注意以上方法都必须在ActiveL()后面(也就是必须List创建好了)再使用.
4、UID范围说明
Protected Range
0 0x00000000 - 0x0FFFFFFF Development use only
0x01000000 - 0x0FFFFFFF 用作测试
1 0x10000000 - 0x1FFFFFFF Legacy UID allocations
2 0x20000000 - 0x2FFFFFFF V9 protected UID allocations
3 0x30000000 - 0x3FFFFFFF Reserved
4 0x40000000 - 0x4FFFFFFF Reserved
5 0x50000000 - 0x5FFFFFFF Reserved
6 0x60000000 - 0x6FFFFFFF Reserved
7 0x70000000 - 0x7FFFFFFF Vendor IDs Unprotected Range
8 0x80000000 - 0x8FFFFFFF Reserved
9 0x90000000 - 0x9FFFFFFF Reserved
A 0xA0000000 - 0xAFFFFFFF V9 unprotected UID allocations
更多精彩
赞助商链接