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 可以看到全部內容