I developed S60 3rd Edition Application with Autostart feature. i implement using following Steps
1) Create a .rss file.
Ex: ECA2548B.rss
------------
#include <startupitem.rh>
RESOURCE STARTUP_ITEM_INFO mobileapp
{
executable_name ="!:\\sys\\bin\\MobileApp.exe";
recovery = EStartupItemExPolicyNone;
}
2) Copy ECA2548B.rss file in your project's GROUP folder.
3)Observe changes in mmp
Above lines will be automatically added by Compiler----
START RESOURCE ECA2548B.rss
HEADER
END
4)Observe .PKG --
;Files to install
;You should change the source paths to match that of your environment
;<source> <destination>
"$(EPOCROOT)Epoc32\data\z\resource\apps\MobileApp.rsc" -"!:\resource\apps\MobileApp.rsc"
"$(EPOCROOT)Epoc32\data\z\private\10003a3f\apps\MobileApp_reg.rsc" -"!:\private\10003a3f\import\apps\MobileApp_reg.rsc"
"$(EPOCROOT)Epoc32\data\z\resource\apps\MobileApp.mif" -"!:\resource\apps\MobileApp.mif"
; Add any installation notes if applicable
"$(EPOCROOT)Epoc32\release\$(PLATFORM)\$(TARGET)\MobileApp.exe" -"!:\sys\bin\MobileApp.exe" ,FR,RI
5) Add following entry in your .pkg file at last line:
"C:\Symbian\9.1\S60_3rd\Epoc32\data\z\ECA2548B.rsc"-"c:\private\101f875a\import\[ECA2548B].rsc"
Its Autostart Successfully but my Confusion is that -
" In my application i provided Autostart On/off Setting (Default OFF) for that i used Timer which Starts If the flag in the setting file is ON, it continues to run itself. If the flag is OFF, then it can call the CAknAppUi:Exit() After 6 Sec; function to terminate Application itself in the early phase of launching the application. "
I think i am braking test Crieteria Rule here, coz i am starting my Application For 6 sec.even Autostart OFF in setting Application .
So is it allowed or not?






