You Are Here:

Community: Developer Discussion Boards

Reply « Previous Thread | Next Thread »

#1 Old Startup list management S60 v3 - 2005-11-25, 16:20

Join Date: Mar 2003
Posts: 27
arizkohli
Offline
Registered User
Hi,

We want to use Startup list management API to autostart an application for series60 version 3.0. but its not working.

We have a resource file "123456789.rss" (where "123456789" is the UID of the application) and its contents are

//////////////////////////////////////////////////////

#include <startupitem.rh>

RESOURCE STARTUP_ITEM_INFO ExampleExe
{
executable_name = "!:\\sys\\bin\\Example.exe";
recovery = EStartupItemExPolicyNone;
}

//////////////////////////////////////////////////////


And we copy the following files through package file:

///////////////////////////////////////////////////////////////////////

"\epoc32\release\gcce\urel\Example.exe"-"!:\sys\bin\Example.exe"
"\epoc32\data\z\private\10003a3f\import\apps\Example_reg.rsc"-"!:\private\10003a3f\import\apps\Example_reg.rsc"
"\epoc32\data\z\resource\apps\Example_loc.Rsc"-"!:\resource\apps\Example_loc.Rsc"
"\epoc32\data\z\resource\apps\Example.Rsc"-"!:\resource\apps\Example.Rsc"
"\epoc32\data\z\private\10003a3f\import\apps\176426778.rsc"-"c:\private\101F875a\import\176426778.rsc"

///////////////////////////////////////////////////////////////////////

Could anybody please tell if the above lines are correct? Or is there anything we are missing?

Do we require any capability for autostarting applicatrion. Our application is having capability "None".

Thanks, AMK
Reply With Quote

#2 Old Re: Startup list management S60 v3 - 2006-01-23, 10:35

Join Date: Jun 2005
Posts: 16
prabhubalajishankar
Offline
Registered User
Hi AMK,

Have u succeed in Autostart for Series60 3.0?
If so , what changes we have to make in .pkg or .rss file

thanks,
Reply With Quote

#3 Old Re: Startup list management S60 v3 - 2006-01-23, 12:28

Join Date: Mar 2003
Posts: 27
arizkohli
Offline
Registered User
Yes, it has to be on the C: drive for now, will change later. There is something you have to do with the resource file. I think it is mentioned in the latest sdk docs.

AMK
Reply With Quote

#4 Old Re: Startup list management S60 v3 - 2006-01-23, 13:13

Join Date: Jun 2005
Posts: 16
prabhubalajishankar
Offline
Registered User
Is it possible to check the Autostart in Series 60 3.0 Emulator.
I tried in Helloworldbasic program by giving,

include <startupitem.rh>
RESOURCE STARTUP_ITEM_INFO listener_server
{
executable_name = "!:\\Symbian\\9.1\\S60_3rd_Beta\\Epoc32\\release\\winscw\\udeb\\HelloWorldBasic.exe";
recovery = EStartupItemExPolicyNone;
}

and in .mmp as

START RESOURCE 10005B91.rss
HEADER
TARGETPATH resource\apps
END //RESOURCE

But helloworldbasic.exe does not start during boot up.

Anything i am missing here?
Thanks,
Reply With Quote

#5 Old Re: Startup list management S60 v3 - 2006-01-24, 08:27

Join Date: Mar 2003
Posts: 27
arizkohli
Offline
Registered User
I have no idea; never tested autostart on the emulator as the emulator was quite messy when we started developing.

AMK
Reply With Quote

#6 Old Re: Startup list management S60 v3 - 2006-01-24, 10:43

Join Date: Jun 2005
Posts: 16
prabhubalajishankar
Offline
Registered User
Hi,

Thanks for your immediate response.
If you have not tested it in emulator,have u used 3.0 device directly..

Regards,
Reply With Quote

#7 Old Exclamation Re: Startup list management S60 v3 - 2006-02-03, 09:31

Join Date: Mar 2004
Posts: 6
Jan-Anders
Offline
Registered User
The name of the file should be [UID].rss not only UID.rss and the RSC file should naturally be named in the same manner.

The HEADER statement int the RESOURCE declaration is not neeced as you do not use the [UID].rsg file

//J-A
Reply With Quote

#8 Old Re: Startup list management S60 v3 - 2006-02-06, 20:20

Join Date: Mar 2003
Posts: 33
mapeters
Offline
Registered User
I have tried this feature, seemingly exactly as documented and discussed in this thread, but I see no evidence that it works. My startup .exe writes trace info to a file as the first thing it does, but that file is never created.

My startup list resource file apparently gets thrown away by the system after the install, since it doesn't exist in the import directory. In fact, there are no files at all anywhere under c:\private\101f875a.

Are there any hidden requirements for this to work?

Thanks!

Mark Peters
Reply With Quote

#9 Old Re: Startup list management S60 v3 - 2006-02-07, 07:09

Join Date: Mar 2004
Posts: 6
Jan-Anders
Offline
Registered User
As far as I know there aren't any hidden requirements apart from those mentined in the SDK help.

1) The installation package containing the application must be trusted, i.e. it must be signed with a valid certificate.

2) The installation package must install the application executable to be added into the startup list.

3) The installation package type must be SISAPP.

4) In case of an embedded package, the control file must be included in the parent package.

5) The control file must be named as [<package UID>].RSC, where <package UID> equals to the UID of the installation package.

6) The control file must not contain any other resource items than those defined in the Detailed Description:

BYTE version
Indicates the version of the API. Do not use.

LTEXT Executable_name
Full path to the executable.

WORD recovery
Recovery policy used in case of failure in executable launch.


The RSC file is processed by the installer and deleted from the import directory. Instead a [UID].dat file can be found in the startup directory (c:\private\101f875a\startup)

Does your application fulfill the first critera? Unless you have a valid certificate, automatic startup is not possible.

//J-A
Reply With Quote

#10 Old Re: Startup list management S60 v3 - 2006-02-08, 13:58

Join Date: Feb 2006
Posts: 12
skypu
Offline
Registered User
Hi:

I also encount the automatic startup problem in my problem. Now I solve this problem and it can work on the target device(N91, S60 3rd Edition). According to what your said before. I can give some suggestion for you to try once more:
1. the resource file "[UID3].rss" must be add with the [], for example, [0FFFFF04].rsc
2. the .exe file which to atuo startup should be a Non-GUI application, such as listeren, server, console application.
3. The sis should be signed with a valid certification. In my project, I signed with the ACS DevCert(the self-signed sisx is regard as an un-trusted application in S60 3rd Edition).

Hope these can help you to solve your problem

======sky pu======
Last edited by skypu : 2006-02-08 at 14:13. Reason: error signature
Reply With Quote

#11 Old Re: Startup list management S60 v3 - 2006-02-08, 14:59

Join Date: Feb 2006
Posts: 12
skypu
Offline
Registered User
Hi:

I am sorry. you can use a GUI applicaiton as a startup application.

======sky pu =====
Reply With Quote

#12 Old Re: Startup list management S60 v3 - 2006-02-14, 11:13

Join Date: Jun 2005
Posts: 16
prabhubalajishankar
Offline
Registered User
Can We test this Autostart in S60 3rd edition SDK? will it work?
Reply With Quote

#13 Old Re: Startup list management S60 v3 - 2006-02-15, 18:27

Join Date: Feb 2006
Posts: 12
skypu
Offline
Registered User
Quote:
Originally Posted by prabhubalajishankar
Can We test this Autostart in S60 3rd edition SDK? will it work?
I do not think so, because during the installing on the target device, the SWI will import the autostart information automatically, which can not do in emulator.
Reply With Quote

#14 Old Re: Startup list management S60 v3 - 2006-02-17, 17:50

Join Date: Aug 2004
Posts: 193
Location: East Coast, USA
blizzz
Offline
Regular Contributor
I seem not to be able to get that working. i believe i did all the required steps
did anyone got that working? i use a E60, with a rom build from october or so...
Reply With Quote

#15 Old Re: Startup list management S60 v3 - 2006-02-19, 18:17

Join Date: Feb 2006
Posts: 12
skypu
Offline
Registered User
Yes, I was success doing it in some devices, like E61,N91,Nokai 3250.

====sky pu=====
Reply With Quote
Reply « Previous Thread | Next Thread »
Display Modes
Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules

You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are Off
[IMG] code is On
HTML code is Off
Forum Jump
Similar Threads
Thread Thread Starter Forum Replies Last Post
FullCanvas to List bug S60 sohrabza Mobile Java Media (Graphics & Sounds) 1 2007-02-27 17:05
6680 and bluetooth service profiles ceruault Mobile Java Networking & Messaging & Security 1 2005-10-08 23:24
List class on S60 phones sandie_quinn Mobile Java General 3 2003-08-29 09:10
Exclusive List behavior, S60 fmhunter Mobile Java Tools & SDKs 1 2002-11-08 14:06
S60 SDK bugs with List xdimas Mobile Java Tools & SDKs 0 1970-01-01 02:00

Rate This

 
Bookmark this page: DeliciousDiggFacebookGoogleYahooStumbleUponRedditDiigoTechnocratiTwitter  Share this page Share this page Print this Page Print this page Invite a friend Invite a friend
京ICP备05048969号    Email Newsletters Press Terms & Conditions Privacy Policy Sitemap Contact Us © 2009 Nokia