×

Discussion Board

Results 1 to 3 of 3
  1. #1
    Regular Contributor
    Join Date
    May 2008
    Posts
    88

    Standalone Application

    Hey Hi,
    Code:
    import appuifw
    import inbox
    import e32
    import logs
    import audio
    
    
    nbr="+4916097089179"
    nbr_rec=0
    
    app_lock = e32.Ao_lock()
    
    def message_recieved(msg_id):
    	global app_lock,nbr
    	box = inbox.Inbox()
    	sms_text = box.content(msg_id)
    	l=logs.sms(mode='in')
    	nbr_rec = l[0]["number"]
    	print (u"Number Recieved is "+str(nbr_rec))
    	if((nbr_rec==nbr) and (sms_text=="Test")):
    		e32.ao_sleep(3)
    		A = audio.Sound.open("C:\smsalertpolices03.mid")
    		j=None
    		A.play(audio.KMdaRepeatForever)
    		while j is None:
    			j=appuifw.query(u"Danger!!!","query")
    		A.stop()
    		A.close()
    	app_lock.signal()
    
    box = inbox.Inbox()
    box.bind(message_recieved)
    
    print (u"Waiting for new SMS messages.....")
    app_lock.wait()
    print(u"Message handled!")
    How to make standalone application from this and also it shows one drawback i.e. if I leave this application running and do other things.The Message is not displayed to the front and I need to go into python to stop the sound.Can anybody suggest something to counter this.
    Rishabh

  2. #2
    Regular Contributor
    Join Date
    Dec 2007
    Location
    Tempe, AZ
    Posts
    411

    Re: Standalone Application

    Hi Rishabh,
    Seems you are doing lot of PyS60 projects
    First of all on HowTo make Stand-alone applications here is the link,

    http://www.mobilenin.com/pys60/info_...pplication.htm

    For messages thing you asked,

    http://www.devshed.com/c/a/Python/Mo...UI-Controls/2/

    and for sound thing you have to go to python and stop the sound there itself AFAIK.
    IDEAS is all they need but still they think only Genius can give them that.

  3. #3
    Nokia Developer Moderator
    Join Date
    May 2007
    Location
    21.46 N 72.11 E
    Posts
    3,795

    Re: Standalone Application

    Rishabh, I guess you are now working on 3rd Edition Devices, so you need to use Ensymble, to make your standalone applications.

    Search the forum for "Ensymble", There are loads of posts on the same.
    Also there is a useful article in the Wiki regarding the same.

    Best Regards,
    Croozeus
    Pankaj Nathani
    www.croozeus.com

Similar Threads

  1. Porting existing application from Sun Wireless tookit 2.3 to Carbide.j 1.5
    By vgps in forum Tools and SDK Feedback (Closed)
    Replies: 3
    Last Post: 2007-06-30, 18:02
  2. Launching a view of a diffrent application
    By nsivach in forum Symbian
    Replies: 3
    Last Post: 2007-03-22, 09:51
  3. Python Standalone Application does not open
    By addicted in forum Symbian
    Replies: 9
    Last Post: 2005-07-07, 11:24
  4. Replies: 0
    Last Post: 2005-05-28, 10:20
  5. N7650 standalone application (connecting to server)
    By hari_j2me in forum Mobile Java General
    Replies: 1
    Last Post: 2002-09-18, 10:42

Posting Permissions

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