Symbian S60 V3自启动各种问题解决办法
S60自启动,是个麻烦的事情,但是可以在SDK中的Startup List Management API找到
1.相关的说明可以看这里:
在3版中实现并动态配置开机自启动
2.开机后如果自动启动就自动退出,但是人肉启动时不用退出,可以这样子
TBool CFepSetupAppUi::ProcessCommandParametersL(CApaCommandLine &aCommandLine)
{
if(aCommandLine.OpaqueData().Length() > 0)
{
// Opaque data exists, app. has been manually started from the menu
}
else
{
//加载后退出
iCoeEnv->InstallFepL( fepZhi6WubiUid );
CAknAppUi:Exit();
//iEikonEnv->RootWin().SetOrdinalPosition(-1);
// App. has been auto-started -> exit if auto-start in settings is OFF
}
return CEikAppUi::ProcessCommandParametersL( aCommandLine );
}
更多文档,也可以看这里:How can I disable autostart if it is enabled? How can I make autostart /autoboot dynamic?
3.用一个console程序来启动,然后来退出,因为要contruct ccoeenv,所以暂时没能提供
没有评论▼