通过Application安装widget
来源:互联网 发布:取法乎上得乎其中原句 编辑:程序博客网 时间:2024/05/16 04:45
LOG_BEGIN("Install the widget");
CActiveScheduler* activeScheduler = new CActiveScheduler();
CActiveScheduler::Install( activeScheduler );
RWsSession wsSession;
User::LeaveIfError( wsSession.Connect() );
TApaTaskList taskList( wsSession );
const TUid KInstallerUid = {0x101f875a};
while( taskList.FindApp( KInstallerUid ).Exists() )
{
LOG_WRITE("waiting install to finish");
User::After( TTimeIntervalMicroSeconds32( 1000000 ) );
}
RApaLsSession lsSession;
User::LeaveIfError( lsSession.Connect() );
CleanupClosePushL( lsSession );//+lsSession
TFileName widgetName;
widgetName.Copy( RProcess().FileName().Left( 2 ) );
widgetName.Append( _L( "//system//data//mywidget.wgt" ) );
TThreadId id;
TInt err = lsSession.StartDocument( widgetName, id );
LOG_FORMAT2( _L("start the widget: %S (%d)"), &widgetName, err );
User::After( TTimeIntervalMicroSeconds32( 2000000 ) );
CleanupStack::PopAndDestroy();
delete activeScheduler;
LOG_END("Install the widget");
- 通过Application安装widget
- Application Context 和 Widget Context 的区别
- 通过Application代替全局变量
- mac widget 安装下载网址
- Qt学习——Creating a Qt Widget Based Application
- App Widget(Application Widget)第一讲(Android学习随笔十)
- Android--通过Application传递数据
- Android 通过Application 传递数据
- 通过application get set 数据
- Widget
- Widget
- Widget
- widget
- widget
- Widget
- widget
- Widget
- Widget
- 汇编输出显示函数
- 汇编冒泡排序
- 在低于3rd FP2的S60平台上建立类似Widget的应用
- C语言中float,double等类型,在内存中的结构
- 管理软件卖什么
- 通过Application安装widget
- 信息系统项目管理系列之七:项目时间管理
- IRQ
- ERP实施过程中的恐慌事件及解决方法
- Adobe Acrobat 虚拟打印机安装方法
- (转)ACM进阶之路
- Const,Const函数,Const变量,函数后面的Const(转)
- Ubuntu 10.10 安装配置LAMP
- Asp 表单提交