Symbian开发小结
2010-05-31 19:42: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
- ››开发Android 日历教程
- ››开发学院总结 Win 8实用技巧大全
- ››开发学院原创教程:把win8的IE10放桌面上方法(非...
- ››开发者眼中的Windows Phone和Android
- ››Symbian S60 SocketConnection参数
- ››开发学院教你用SQL 语句最快速清空MySQL 数据表的...
- ››Symbian乏力:2010年诺基亚悲情大事记
- ››Symbian三大升级开启2011年新战略
- ››Symbian/Android/iOS/WM安装包对比
- ››Symbian一个活动对象的测试例子
- ››Symbian ListBox控件
- ››Symbian下自动切换SDK的批处理代码
更多精彩
赞助商链接