when I say didnt work ...
I mean that the app runs in the foreground when turning the phone on ...
Re: autostart doesnt work
Hi white_dragon,
Have u been able to solve this problem?
I have been trying to search on all possible threads on this forum for "Autostart" ,"recognizer" etc. but [B]haven't found a solution as to how to send an application in background after it is Autostarted after device boot.[/B]
At present my application is auto started using an mdl created using the code from [url]http://mikie.iki.fi/symbian/autostart.html[/url]
But it comes to the foreground once it is Autostarted. I know I can send an application to background from the link:
[url]http://www.newlc.com/Moving-an-application-to.html[/url]
[B][COLOR="Magenta"]But then if the user exits this application and manually starts it again, then also it will go to background.[/COLOR][/B]
[B]Is there some way to determine whether an application has been launched by the mdl after boot or if the user has launched it?
I want the solution for Series 60 2nd edition devices. [/B]
[B][COLOR="DarkOrchid"]I know that such a solution already exists for 3rd Edition devices at:[/B]
[url]http://newlc.com/How-to-detect-if-an-application-is.html[/url][/COLOR]
If anyone viewing this thread has the solution, please post the reply here.
Thanks in advance.
Re: autostart doesnt work
hey folks,
i solved my problem.
The following code snippet works well for sending an application to background after launching it through a recognizer on startup:
_LIT(KAppName,"Test.app");
TBuf<100> appName(KAppName);
CApaCommandLine * cmd=CApaCommandLine::NewL();
cmd->SetLibraryNameL(appName);
cmd->SetCommandL(EApaCommandBackground);
EikDll::StartAppL(*cmd);