×

Discussion Board

Page 1 of 2 12 LastLast
Results 1 to 15 of 28
  1. #1
    Registered User
    Join Date
    Feb 2005
    Location
    Belgium (Europe)
    Posts
    1,352

    Thumbs up [announce] appswitch for 3rd edition !

    hello ,

    Now you can use appswitch in 3rd edition phones !

    This little module has been made by Simo Salminen.

    I have only added an useful function is_appname_fg ...

    links:
    http://cyke64.googlepages.com/
    appswith (2nd)
    appwitch (3rd selfsigned)
    appswitch (3rd unsigned)
    pys60 1.4.5 and 2.0.0, pygame, PyS60 CE on E90 and 5800 !

    Find my pys60 extension modules on cyke64.googlepages.com

  2. #2
    Registered User
    Join Date
    Aug 2006
    Posts
    28

    Re: [announce] appswitch for 3rd edition !

    Hello Cyke,

    is the 3rd selfsigned version supposed to work with a selfsigned shell and interpreter? When I issue "import appswitch" in the selfsigned script shell 1.3.15 on my Nokia E60 (SW 2), I get the following error (other extensions like misty work fine ):

    Code:
    >>> import appswitch
    Traceback (most recent call last):
      File "<console>", line 1, in ?
      File "c:\resource\site.py", line 94, in platsec_import
        return _original_import(name, globals, locals, fromlist)
      File "c:\resource\appswitch.py", line 5, in ?
        _appswitch = imp.load_dynamic('_appswitch', 'c:\\sys\\bin\\_appswitch.pyd')
    SystemError: _PyImport_FixupExtension: module _appswitch not loaded
    Regards, - Goetz

  3. #3
    Super Contributor
    Join Date
    May 2006
    Location
    Oulu, Finland
    Posts
    622

    Re: [announce] appswitch for 3rd edition !

    Have you installed the library on your memory drive(E: )? Or is it by default on the C: drive

    LFD
    Devices:
    Nokia E61 3rd Edition - pys60 1.4.0

    Tips and modules:
    http://www.lfdm.net/thesis

  4. #4
    Registered User
    Join Date
    Aug 2006
    Posts
    28

    Re: [announce] appswitch for 3rd edition !

    Everything is installed to C:

    - Goetz

  5. #5
    Super Contributor
    Join Date
    May 2006
    Location
    Oulu, Finland
    Posts
    622

    Re: [announce] appswitch for 3rd edition !

    Have you checked if c:\\sys\\bin\\_appswitch.pyd is physically present on the drive?

    LFD
    Devices:
    Nokia E61 3rd Edition - pys60 1.4.0

    Tips and modules:
    http://www.lfdm.net/thesis

  6. #6
    Registered User
    Join Date
    Aug 2006
    Posts
    28

    Re: [announce] appswitch for 3rd edition !

    Due to the 3rd ed security restrictions I am not able to open the directory with a file browser and accessing the file directly, i.e. with a python open command, results in IOError: [Errno -46].

    So I guess, unfortunately I am not able to find it out.

    - Goetz

  7. #7
    Super Contributor
    Join Date
    May 2006
    Location
    Oulu, Finland
    Posts
    622

    Re: [announce] appswitch for 3rd edition !

    goetz_s,

    after today you will love Y-Browser! I actually installed it today on my N91

    If you want a ready self-signed version rendez-vous at my blog http://www.lfdm.net/thesis/ downloads section. If you want to sign it by yourself get the .sis at http://www.allaboutsymbian.com/softw...rd_Edition.php

    Install it and you'll finally be able to see what's on your phone

    LFD
    Devices:
    Nokia E61 3rd Edition - pys60 1.4.0

    Tips and modules:
    http://www.lfdm.net/thesis

  8. #8
    Registered User
    Join Date
    Feb 2005
    Location
    Belgium (Europe)
    Posts
    1,352

    Re: [announce] appswitch for 3rd edition !

    Quote Originally Posted by lfd
    goetz_s,

    after today you will love Y-Browser! I actually installed it today on my N91

    If you want a ready self-signed version rendez-vous at my blog http://www.lfdm.net/thesis/ downloads section. If you want to sign it by yourself get the .sis at http://www.allaboutsymbian.com/softw...rd_Edition.php

    Install it and you'll finally be able to see what's on your phone

    LFD

    hello lfd ,

    I already have the new version of Y-browser for 3rd and I am not able to read c:\sys folder
    Is your old version different from mine ?

    Thanks
    pys60 1.4.5 and 2.0.0, pygame, PyS60 CE on E90 and 5800 !

    Find my pys60 extension modules on cyke64.googlepages.com

  9. #9
    Registered User
    Join Date
    Aug 2006
    Posts
    28

    Re: [announce] appswitch for 3rd edition !

    Hi lfd,

    the file browser I was referring to was YBrowser 0.77 I am using all the time. But also this browser and the 0.50 version on your homepage don't show all the files or the sys dir.

    I have also heard rumors, that Nokia won't give the ALLFILES capability to any file manager ...

    I have not bothered to get a dev cert so far and I hope to get along without for a while. Getting and using it with linux does not seem easy. But a dev cert won't change the problem here if I am right.

    So how have you managed to do the trick?

    - Goetz

  10. #10
    Super Contributor
    Join Date
    May 2006
    Location
    Oulu, Finland
    Posts
    622

    Re: [announce] appswitch for 3rd edition !

    Noup it shows the directory... but empty

    And the os.path.isfile() never returns true. Damn!

    Sorry for that...

    LFD
    Devices:
    Nokia E61 3rd Edition - pys60 1.4.0

    Tips and modules:
    http://www.lfdm.net/thesis

  11. #11
    Registered User
    Join Date
    Aug 2006
    Posts
    28

    Re: [announce] appswitch for 3rd edition !

    Quote Originally Posted by lfd
    Noup it shows the directory... but empty
    Newer versions of YBrowser don't show it any more, so you're not tempted to think you could see its contents and conlude it's empty ...

    But, anyway I like YBrowser and use it a lot. But maybe now back to topic ...

    - Goetz

  12. #12
    Super Contributor
    Join Date
    May 2006
    Location
    Oulu, Finland
    Posts
    622

    Re: [announce] appswitch for 3rd edition !

    So,

    I tried to install it on my N91. I'm having the same problem. Libs have to be checked and re-complied cause when using the unsigned.sis I can't terminate the installation, capabilities seam to be missing or something like that.

    I've have problem with iapconnect and appswitch.

    I already recomplied iapconnect that you can find on my page.

    I succeeded compiling and installing appswitch but I'm getting an error so I'll have a look tomorrow it's getting late.

    LFD
    Devices:
    Nokia E61 3rd Edition - pys60 1.4.0

    Tips and modules:
    http://www.lfdm.net/thesis

  13. #13
    Super Contributor
    Join Date
    May 2006
    Location
    Oulu, Finland
    Posts
    622

    Re: [announce] appswitch for 3rd edition !

    goetz_s,

    I recompiled, installed and tested successfully appswitch on 3rd edition MR SDK and N91.

    You can find the file on my page section downloads

    LFD
    Devices:
    Nokia E61 3rd Edition - pys60 1.4.0

    Tips and modules:
    http://www.lfdm.net/thesis

  14. #14
    Registered User
    Join Date
    Aug 2006
    Posts
    28

    Re: [announce] appswitch for 3rd edition !

    Hi lfd,

    thanks a lot! The version from your website works nicely.

    - Goetz

  15. #15
    Registered User
    Join Date
    Aug 2006
    Posts
    28

    Re: [announce] appswitch for 3rd edition !

    After playing with appswitch for 3rd ed (selfsigned) a bit, I created a small frontend which can be used as task (or better said application) manager. It can easily be converted to a standalone sis using ensymble. But beware which apps you kill! Even the selfsigned version is able to kill some system apps, disabling the power button menu, for example, making it impossible to switch the phone off.

    On the other hand, it seems to be useless to kill a python interpreter stuck in an infinite loop. For that, I have to use the "remove memory card" trick on my E60, which closes all user applications.

    Ok, here is the code of my quick hack. Use it on your own risk!

    Code:
    # AppKill - frontend for the appswitch module
    # (c) Goetz Schwandtner 12-2006
    
    import appuifw, e32
    import appswitch
    
    class AppKill(object):
        def __init__(self):
            self.showall = False
            appuifw.app.title = u'AppKill (c) G.Schwandtner'
    	self.appl = list(appswitch.application_list(self.showall))
    	self.lb = appuifw.Listbox(self.appl,self.switch_to)
    	appuifw.app.menu=[(u'kill app',self.kill_app),(u'about',self.about),(u'toggle hidden',self.toggle_hidden),(u'refresh',self.refresh)]
    	appuifw.app.body=self.lb
    	appuifw.app.exit_key_handler=self.quit
    	self.lock=e32.Ao_lock()
    	self.lock.wait()
        def about(self):
            appuifw.note(u'(c) 2006 Goetz Schwandtner')
        def refresh(self):
        	self.appl=list(appswitch.application_list(self.showall))
    	self.lb.set_list(self.appl)
        def cur_app(self):
    	return self.appl[self.lb.current()]
        def switch_to(self):
    	appswitch.switch_to_fg(self.cur_app())
        def kill_app(self):
    	appswitch.kill_app(self.cur_app())
    	self.refresh()
        def toggle_hidden(self):
    	self.showall = not self.showall
    	self.refresh()
        def quit(self):
    	self.lock.signal()
    	appuifw.app.set_exit()
        
    if __name__ == '__main__':
        ak=AppKill()
    - Goetz

Similar Threads

  1. Where is SDK for S60 1st Edition?
    By MDWPPC in forum Mobile Java Tools & SDKs
    Replies: 5
    Last Post: 2007-02-08, 07:04
  2. [announce] Image Converter for 1st edition
    By cyke64 in forum Symbian
    Replies: 2
    Last Post: 2006-12-27, 14:51
  3. S60 2nd OR 3rd edition for new software development
    By patil_ruturaj in forum Mobile Java Tools & SDKs
    Replies: 3
    Last Post: 2006-06-30, 08:57

Posting Permissions

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