WEB开发网
开发学院手机开发Symbian 开发 symbian 2nd 下 J2ME 安装研究和启动方法 阅读

symbian 2nd 下 J2ME 安装研究和启动方法

 2010-03-11 16:12:00 来源:WEB开发网   
核心提示:RLog::Log(uidBuf); //得到10197d97TBuf<100> appPath;appPath.Append(KAppPath);appPath.Append(uidBuf);appPath.Append(_L("]\["));appPath.Append(uidBuf

RLog::Log(uidBuf); //得到10197d97

TBuf<100> appPath;

appPath.Append(KAppPath);

appPath.Append(uidBuf);

appPath.Append(_L("]\["));

appPath.Append(uidBuf);

appPath.Append(_L("].app"));

aPath.Copy(appPath);

RLog::Log(aPath); //得到C:systemapps[10197d97][10197d97].app

return;

}

TChar itoa(TInt aInt)

{

if(aInt<0||aInt>15)

{

RLog::Log(_L("EEROR in itoa"),aInt);

return aInt;

}

switch(aInt)

{

case 0:

case 1:

case 2:

case 3:

case 4:

case 5:

case 6:

case 7:

case 8:

case 9:

return aInt + 48;

case 10:

case 11:

case 12:

case 13:

case 14:

case 15:

return aInt + 87;

}

}

void DoLaunchL() //

{

RLog::Log(_L(" IN DoLaunchL()"));

TBuf<100> path;

path.Copy(_L8("err"));

GetAppFilePath(path);

//启动

CApaCommandLine* cmdLine=CApaCommandLine::NewLC();

cmdLine->SetLibraryNameL( path );

cmdLine->SetCommandL( EApaCommandRun );

RApaLsSession ls;

User::LeaveIfError( ls.Connect() );

CleanupClosePushL(ls);

User::LeaveIfError( ls.StartApp(*cmdLine) );

CleanupStack::PopAndDestroy( 2 ); // ls ,cmdLine

RLog::Log(_L("END DoLaunchL()"));

}

上一页  1 2 3 

Tags:symbian nd JME

编辑录入:coldstar [复制链接] [打 印]
赞助商链接