diff -r fc313e1df071 -r 6347473a7bb2 srsf/vcommandhandler/src/vcommandrunnable.cpp --- a/srsf/vcommandhandler/src/vcommandrunnable.cpp Wed Apr 14 15:58:44 2010 +0300 +++ b/srsf/vcommandhandler/src/vcommandrunnable.cpp Tue May 11 16:14:47 2010 +0300 @@ -23,6 +23,8 @@ #include #include #include +#include +#include /** * The version of the streamed data protocol @@ -232,6 +234,21 @@ } else { + const TUid KLogsUID3 = { 270486741 };//101F4CD5 + //In case logs.exe run in background [EDCN-84B68Q] + //todo: General support for this kind of case, + // eg, add "view" keyworkd in defaultvoicecommands.xml... + if ( iExeUid == KLogsUID3 ) + { + TApaTaskList taskList( CCoeEnv::Static()->WsSession() ); + TApaTask task = taskList.FindApp( iExeUid ); + if( task.Exists() ) //Logs already open. Request it to + { //activate the correct view + task.SendMessage( iExeUid, *iArguments ); + return; + } + } + TApaAppInfo appInfo; RApaLsSession apaLsSession; CleanupClosePushL( apaLsSession );