开发学院手机开发Symbian 开发 Symbian手机平台开发经验总结 阅读

Symbian手机平台开发经验总结

 2010-09-06 08:10:00 来源:WEB开发网   
核心提示:1、获取IMSI号、手机版本等CTelephony:GetSubscriberId()CTelephony:GetPhoneId()CTelephony:Version()2、获取屏幕尺寸TSize CEikConsoleScreen::ScreenSize3、更改ListBox字体方法1:_LIT(KFontName

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

1 2 3 4 5 6  下一页

Tags:Symbian 手机 平台

编辑录入:coldstar [复制链接] [打 印]
[]
  • 好
  • 好的评价 如果觉得好,就请您
      0%(0)
  • 差
  • 差的评价 如果觉得差,就请您
      0%(0)
更多精彩
    赞助商链接

    热点阅读
      焦点图片
        最新推荐
          精彩阅读