Namespaces

Variants
Actions

Please note that as of October 24, 2014, the Nokia Developer Wiki will no longer be accepting user contributions, including new entries, edits and comments, as we begin transitioning to our new home, in the Windows Phone Development Wiki. We plan to move over the majority of the existing entries over the next few weeks. Thanks for all your past and future contributions.

某些S60程序的UID是设备相关的

From Wiki
Jump to: navigation, search
Article Metadata

兼容于
平台: S60 3rd Edition
S60 3rd Edition (initial release)

文章
huwell 在 20 Nov 2007 创建
最后由 hamishwillee 在 30 May 2013 编辑
  • 详细描述

某些S60程序(如Camera/Camcorder)的UID,在S60同一个版本(甚至一个Feature Pack)中可能是不一样的。这关系到启动外部程序视图时,或使用需要程序UID的API时(如New File Service Client API)所产生的问题。


S60第三版中的New File Service API可以用来录制视频音频以及捕捉图像。


这个API并没有在S60官方SDK中出现,你可以在这里找到 Extensions plug-in package #1 for S60 3rd Edition SDK for Symbian OS, for C++, MR,注意Nokia没有保证这些API的二进制兼容性,不同平台版本或同一个平台版本都不保证。


所有S60第三版手机中的Camera/Camcorder应用程序UID都不尽相同,当使用CNewFileServiceClient::NewFileL()函数时就会出现问题了。该API的使用示例如下:

CDesCArray* selectedFiles = new (ELeave) CDesCArrayFlat(4);
 
CNewFileServiceClient* fileClient = NewFileServiceFactory::NewClientL();
 
TBool createOK = EFalse;
 
TBool multiFileSelection = EFalse;
 
//...
 
 
 
CNewFileServiceClient* fileClient = NewFileServiceFactory::NewClientL();
 
createOK = fileClient->NewFileL(
 
KUidCamcorder,
 
*selectedFiles,
 
paramList,
 
ENewFileServiceImage, // Note: ENewFileServiceImage is also used for video recording.
 
multiFileSelection );
 
//...

这些Camera程序的UID分别为: Nokia N73(或其他N系列手机) : 0x101FFA86 Basic S60 Camcorder app. UID: 0x101F857A


需要的capability为:WriteDeviceData

This page was last modified on 30 May 2013, at 04:42.
156 page views in the last 30 days.

Was this page helpful?

Your feedback about this content is important. Let us know what you think.

 

Thank you!

We appreciate your feedback.

×