You Are Here:

Community: Developer Discussion Boards

#1 Old Question pys60 service - 2008-10-27, 05:18

Join Date: Feb 2008
Posts: 11
safaltechnical
Offline
Registered User
Hi ,

For N73 mobile

how to write a pys60 program which start automatically(the user should not start manually the program ) when the mobile is switched on it monitors the incoming messages , it means that the program should run in background until the mobile is switched off.

And one more how the program knows a new message is arrived, or there is any alert in pys60 which indicates the new message has arrived plz help me
Reply With Quote

#2 Old Re: pys60 service - 2008-10-27, 05:30

Join Date: Oct 2007
Posts: 2,841
Location: Deva, Romania
bogdan.galiceanu's Avatar
bogdan.galiceanu
Online
Forum Nokia Champion
You can use Ensymble's --autostart flag when creating the sis file to make the application start when the phone starts. Though it may not work, depending on the type of signing you use:
From the Ensymble documentation:
Quote:
--autostart
-g

Flag to control automatic startup of the application. On S60 3rd Edition
phones, an application can register itself to be automatically started
when the phone is turned on.

Note: Self-signed applications and applications with UID in the
unprotected range cannot register to be automatically started
You can then use appswitch to send the application into background.

To listen for incoming SMS you need to bind inbox.Inbox() to it:
Code:
#Waiting for an incoming SMS

import inbox, e32, appuifw


#Define the exit function
app_lock=e32.Ao_lock()
def quit():
    app_lock.signal()
    appuifw.app.exit_key_handler=quit

#Define the function to be executed when a message is received
def cb(id):
    print "New message!"

i=inbox.Inbox()

#Now wait for the message:
i.bind(cb)

app_lock.wait()
Reply With Quote

#3 Old Re: pys60 service - 2008-10-27, 05:36

Join Date: Sep 2007
Posts: 395
Location: Bhavnagar
Send a message via Yahoo to james1980
james1980's Avatar
james1980
Offline
Forum Nokia Champion
Hi,
please refer this link http://discussion.forum.nokia.com/fo...d.php?t=148153. This might give you some idea about making a autostart app.
Bye


Jajal Mehul
Reply With Quote

#4 Old pys60 service - 2008-10-27, 14:09

Join Date: Feb 2008
Posts: 11
safaltechnical
Offline
Registered User
Hi,
It works only for symbian signed certificates

Please tell me how to install those certificate
and how to get those certificate

there is any possibility with self signed one -- autostart doesnt work with self signesd certificates
Reply With Quote

#5 Old Re: pys60 service - 2008-10-27, 14:26

Join Date: Oct 2007
Posts: 2,841
Location: Deva, Romania
bogdan.galiceanu's Avatar
bogdan.galiceanu
Online
Forum Nokia Champion
Basically you have to pay 200$ to get a Publisher ID in order to apply for certification. The process is best described in The Complete Guide To Symbian Signed
Reply With Quote

#6 Old Re: pys60 service - 2008-10-27, 22:11

Join Date: Feb 2008
Posts: 743
Location: Belo Horizonte, Brazil
Send a message via Skype™ to Rafael T.
Rafael T.'s Avatar
Rafael T.
Offline
Forum Nokia Champion
I'll make a refer to a piece of a post made by jethro.fn, who defines perfectly the signing options:

Quote:
Here are the signing options and some thoughts about them (also see Symbian Signed Grid):

* Self-signing - Free, no need to deal with Nokia or Symbian at all. Llimited set of capabilities available: LocalServices, Location, NetworkServices, ReadUserData, UserEnvironment, WriteUserData. Operators may prevent installing of self-signed applications. Some operators already do this with their own phone variants. Also, there's no guarantee that any future Nokia phones accept self-signed SIS files.
* Open Signed Online - Free, but not suitable for distribution. Locked to one IMEI and the UID ownership is checked during signing, preventing the signing of other peoples extension modules. Each signing valid for three years.
* Open Signed Offline - Requires a Publisher ID (about $200 per year). Max. 1000 IMEIs, each signing valid for three years.
* Express Signed - Requires a Publisher ID. Costs $20 per signing, no IMEI restrictions, valid perpetually.
* Certified Signed - Requires a Publisher ID. Requires a test report from an independent test house (costly).

So, to distribute your software you most likely need to use the Express Signed option. You need to sign each extension module (written in C++, pure Python ones are OK) separately. Every time a SIS file changes, you need to re-sign the changed SIS file and the resulting one big SIS file.
Click here to see the complete thread/post from the quote.


Hope it helps,

Rafael.
Reply With Quote

#7 Old Re: pys60 service - 2008-10-28, 03:25

Join Date: Feb 2008
Posts: 2,542
Location: Bhavnagar, Gujarat, India
Send a message via Yahoo to gaba88 Send a message via Skype™ to gaba88
gaba88's Avatar
gaba88
Online
Forum Nokia Champion
hi safaltechnical

dont forget to have a look at the PyS60 Faq Thread It may be bit helpful also.

Enjoy Pythoning
Gaba88


Gargi Das- http://gargidas.blogsot.com

Forum Nokia Python Wiki


Learn Python at http://mobapps.org/PyS60
Reply With Quote

#8 Old Arrow Re: pys60 service - 2008-10-30, 13:39

Join Date: Oct 2008
Posts: 203
Send a message via Yahoo to rahulvala
rahulvala's Avatar
rahulvala
Offline
Regular Contributor
when incomming messege comes it will make sound .
but when phone in silent we see just light in lcd.
bye
Reply With Quote
Reply « Previous Thread | Next Thread »
Display Modes
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Rate This Thread
Rate This Thread:

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 On
[IMG] code is Off
HTML code is Off
Forum Jump
Similar Threads
Thread Thread Starter Forum Replies Last Post
Cannot find where the issue is, Bluetooth service discovery newbietoprofessional Mobile Java Networking & Messaging & Security 3 2008-07-14 17:39
bluetooth service not visible rosenholzer Mobile Java Networking & Messaging & Security 0 2007-03-08 09:26
Problem with service attribute propagation and service attribute retrieval pfrey Bluetooth Technology 4 2006-09-05 16:15
6680 and bluetooth service profiles ceruault Mobile Java Networking & Messaging & Security 1 2005-10-08 23:24

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 
RDF Facets: qdcZidentifierQSxhttpE3aE2fE2fdiscussionE2eforumE2enokiaE2ecomhttpE3aE2fE2fdiscussionE2eforumE2enokiaE2ecomE2fforumE2fshowthreadE2ephpE3ftE3d81449X qdcZtypeQUqfnZE45E78cludedFromGeneralE4cistingsQ qdcZtypeQUqfntypeZCommunityContentQ qdcZtypeQUqfntypeZE44iscussionQ qdcZtypeQUqfntypeZE44iscussionContentQ qdcZtypeQUqfntypeZE52esourceQ qdcZtypeQUqfntypeZWebpageQ qdcZtypeQUqmarsZManagedE52esourceQ qdcZtypeQUqwebZInformationE52esourceQ qdcZtypeQUqwebZPageQ qdcZtypeQUqwebZE52esourceQ qdcZtypeQUqrdfsZE52esourceQ qfnZtopicQUqfnTopicZpythonQ qfnZtypeQUqfntypeZCommunityContentQ qfnZtypeQUqfntypeZE44iscussionQ qfnZtypeQUqfntypeZE44iscussionContentQ qfnZtypeQUqfntypeZE52esourceQ qfnZtypeQUqfntypeZWebpageQ qfnZuserE5ftagQSxpythonX qmarsZlanguageQUxhttpE3aE2fE2fswE2enokiaE2ecomE2flanguageE2d1E2fenX qrdfZtypeQUqfnZE45E78cludedFromGeneralE4cistingsQ qrdfZtypeQUqfntypeZCommunityContentQ qrdfZtypeQUqfntypeZE44iscussionQ qrdfZtypeQUqfntypeZE44iscussionContentQ qrdfZtypeQUqfntypeZE52esourceQ qrdfZtypeQUqfntypeZWebpageQ qrdfZtypeQUqmarsZManagedE52esourceQ qrdfZtypeQUqwebZInformationE52esourceQ qrdfZtypeQUqwebZPageQ qrdfZtypeQUqwebZE52esourceQ qrdfZtypeQUqrdfsZE52esourceQ