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<CColumnListBoxItemDrawer*>
(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
B 0xB0000000 - 0xBFFFFFFF Reserved
C 0xC0000000 - 0xCFFFFFFF Reserved
D 0xD0000000 - 0xDFFFFFFF Reserved
E 0xE0000000 - 0xEFFFFFFF Development use only
F 0xF0000000 - 0xFFFFFFFF Legacy UID compatibility range
5、关于真机文件目录
在*.pkg文件中,'-'前面是PC上的文件目录,请确认PC上对应目录下存在这些文件。
'-'后面是手机上的目录,采用相对路径,如「resource\apps\*.mbm」
注意 ..
访客只能看到部份内容,免费 加入会员 或由脸书 Google 可以看到全部内容