Discussion Board

Results 1 to 5 of 5
  1. #1
    Regular Contributor rishabhgupta's Avatar
    Join Date
    May 2008
    Posts
    88
    Hi,
    I have created a standalone application and I m trying to run it on 3rd edition mobile phones.
    Code:
    import appuifw
    import inbox
    import e32
    import logs
    import audio
    import appswitch
    
    nbr="+491773097582"
    #nbr="+4915153190311"
    nbr_rec=0
    
    app_lock = e32.Ao_lock()
    
    def message_recieved(msg_id):
    	global app_lock,nbr
    	box = inbox.Inbox()
    	m=appswitch.switch_to_fg(u"Task")
    	appuifw.note(unicode(str(m)),"info",1)
    	e32.ao_sleep(2)
    	sms_text = box.content(msg_id)
    	l=logs.sms(mode='in')
    	nbr_rec = l[0]["number"]
    	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!!!Press Left Key to Stop the Alarm.","query")
    		A.stop()
    		A.close()
    	app_lock.signal()
    
    appuifw.note(u"Starting!!","info")
    e32.ao_sleep(2)
    i=appswitch.switch_to_bg(u"Task")
    appuifw.note(unicode(str(i)),"info",1)
    e32.ao_sleep(2)
    appuifw.note(u"Hi m here gng inside","info",1)
    e32.ao_sleep(2)
    j=appswitch.switch_to_fg(u"Task")
    appuifw.note(unicode(str(j)))
    e32.ao_sleep(2)
    appuifw.note(u"Back Out Again","info")
    e32.ao_sleep(2)
    k=appswitch.switch_to_bg(u"Task")
    appuifw.note(unicode(str(k)),"info",1)
    e32.ao_sleep(10)
    n=appswitch.switch_to_fg(u"Task")
    appuifw.note(unicode(str(n)))
    box = inbox.Inbox()
    appuifw.note(u"Yeah","info",1)
    box.bind(message_recieved)
    app_lock.wait()
    appuifw.note(u"Ended","info",1)
    Its running till one point in my code.Whenever it encounters

    box=box.Inbox()

    It stops.I dont know why is this happening.
    Plz Help me.
    Rishabh

  2. #2
    Regular Contributor rishabhgupta's Avatar
    Join Date
    May 2008
    Posts
    88
    Hey,
    I checked and the problem seems to be something with the Inbox module and sis file.Plz help me.Somebody reply.
    Rishabh

  3. #3
    Nokia Developer Moderator bogdan.galiceanu's Avatar
    Join Date
    Oct 2007
    Location
    Deva, Romania
    Posts
    3,471
    Have you tried signing the sis file in case it requires certain capablities? If you haven't remember to specify the capabilities both when creating the sis with Ensymble and when Open Signing it Online.

  4. #4
    Regular Contributor rishabhgupta's Avatar
    Join Date
    May 2008
    Posts
    88
    Ya, I have signed with all the capabilities.

    1.First I created the sis file using the following command:
    ensymble.py py2sis --appname=SMSAlert SMSAlert.py SMSAlert.sis

    It shows some warnings regarding not mentioning the version,uid and certificate.

    2.Then I signed it using the following command:
    ensymble.py signsis --dllcaps=LocalServices+Location+NetworkServices+PowerMgmt+
    ProtServ+ReadUserData+SurroundingsDD+SWEvent+UserEnvironment+
    WriteUserData+ReadDeviceData+TrustedUI+WriteDeviceData SMSAlert.sis

    3.Then I used the symbiansigned.com to sign it for the mobile for which I wanted to test it.

    After this,I transferred it to the cell and installed it.It runs OK before the point where the Inbox module command is thr.
    box=inbox.Inbox()

    But as soon as it encounters it,it dies out.I dont know whts the problem here.Plz help me.

    Rishabh

  5. #5
    Nokia Developer Moderator bogdan.galiceanu's Avatar
    Join Date
    Oct 2007
    Location
    Deva, Romania
    Posts
    3,471
    Quote Originally Posted by rishabhgupta View Post
    Ya, I have signed with all the capabilities.

    1.First I created the sis file using the following command:
    ensymble.py py2sis --appname=SMSAlert SMSAlert.py SMSAlert.sis

    It shows some warnings regarding not mentioning the version,uid and certificate.

    2.Then I signed it using the following command:
    ensymble.py signsis --dllcaps=LocalServices+Location+NetworkServices+PowerMgmt+
    ProtServ+ReadUserData+SurroundingsDD+SWEvent+UserEnvironment+
    WriteUserData+ReadDeviceData+TrustedUI+WriteDeviceData SMSAlert.sis

    3.Then I used the symbiansigned.com to sign it for the mobile for which I wanted to test it.

    After this,I transferred it to the cell and installed it.It runs OK before the point where the Inbox module command is thr.
    box=inbox.Inbox()

    But as soon as it encounters it,it dies out.I dont know whts the problem here.Plz help me.

    Rishabh
    Could you please try adding the same capabilities for EXEs. So it would be like:
    Code:
    ensymble.py signsis --execaps=LocalServices+Location+NetworkServices+PowerMgmt+
    ProtServ+ReadUserData+SurroundingsDD+SWEvent+UserEnvironment+
    WriteUserData+ReadDeviceData+TrustedUI+WriteDeviceData --dllcaps=LocalServices+Location+NetworkServices+PowerMgmt+
    ProtServ+ReadUserData+SurroundingsDD+SWEvent+UserEnvironment+
    WriteUserData+ReadDeviceData+TrustedUI+WriteDeviceData SMSAlert.sis
    I saw that in Ensymble's documentation and when I tried it it said that 1 EXE had been changed. I'd sign it myself but whenever I try Symbiansigned gives me the error "FAILURE: Network communication failure. Please try again."
    Last edited by bogdan.galiceanu; 2008-06-18 at 16:30. Reason: typo

Similar Threads

  1. console app running problem
    By xcompass in forum Symbian C++
    Replies: 3
    Last Post: 2009-05-08, 13:26
  2. Problem While Creating Standalone Application
    By rishabhgupta in forum Python
    Replies: 9
    Last Post: 2009-04-24, 09:42
  3. Replies: 4
    Last Post: 2008-06-12, 11:01
  4. Problem of running J2ME application
    By sujoydas in forum Mobile Java General
    Replies: 2
    Last Post: 2003-09-30, 16:49
  5. .SIS killing a running application?
    By dchiaramello in forum Symbian C++
    Replies: 0
    Last Post: 2003-09-24, 16:31

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Nokia Developer aims to help you create apps and publish them so you can connect with users around the world.

京ICP备05048969号  © Copyright Nokia 2013 All rights reserved