Discussion Board

Results 1 to 7 of 7
  1. #1
    Registered User
    Join Date
    Jan 2009
    Posts
    33

    Enabling/Disabling red key - How ?

    Hi,
    How can I enable/disable the red key ?

  2. #2
    Registered User
    Join Date
    Jun 2008
    Posts
    45

    Re: Enabling/Disabling red key - How ?

    Yes you can.
    Look for an ENVY module.

    Code:
    import envy
    try:
    	envy.set_app_system(1)
    except:
    	print 'exception during envy activation!'
    You can view status by:
    Code:
    if (envy.is_app_system()):
    	print 'Envy enabled'
    mac

  3. #3
    Registered User
    Join Date
    Jan 2009
    Posts
    33

    Re: Enabling/Disabling red key - How ?

    Hi mac,
    With envy, clicking the red button just moves the application to the background. I am developing a security application.My application should not be hidden or closed without providing a valid password. How do i do this?

    Thanks.

  4. #4
    Super Contributor
    Join Date
    Oct 2007
    Location
    Deva, Romania
    Posts
    3,471

    Re: Enabling/Disabling red key - How ?

    From the PyS60 Library Reference:
    There is no way to prevent the standard action of the Hang-up key, the Menu key, the Power key or the Voice tags key from taking place.
    So it seems it can't be done.

  5. #5
    Registered User
    Join Date
    Jan 2009
    Posts
    33

    Re: Enabling/Disabling red key - How ?

    Hi bogdan,
    Thanks for the reply.
    I have seen some antitheft applications which ask for password on bootup to unlock the phone.Such applications definitely need the red key to be disabled temporarily right?How is it done ? or Am i missing something?

    Btw, cant i use the keycapturer to achieve this?I haven't tried it though

    Thanks.

  6. #6
    Super Contributor
    Join Date
    Oct 2007
    Location
    Deva, Romania
    Posts
    3,471

    Re: Enabling/Disabling red key - How ?

    Those applications were most probably written in Symbian C++. And I remember trying keycapture with the red key and it didn't work.

  7. #7
    Registered User
    Join Date
    Jan 2009
    Posts
    33

    Re: Enabling/Disabling red key - How ?

    Hi bogdan,
    Thanks for the reply.I have one more question.

    I have developed an antitheft application for which i am using envy, appswitch and pykeylock.I got my final sis file signed and it was working fine on my N95 8GB yesterday. But today, when I tried opening the same application which I had installed yesterday, it doesn't open.What might the problem be ?I think this has happened twice so far.

    Thanks.

Similar Threads

  1. Replies: 21
    Last Post: 2011-03-17, 09:16
  2. Change red end key behave for my VOIP app
    By shallowayalan in forum Symbian
    Replies: 5
    Last Post: 2009-03-10, 10:08
  3. Call Hangup using Red Key
    By apus29 in forum Symbian
    Replies: 4
    Last Post: 2008-09-16, 06:49
  4. The RED key handling on S60 MR
    By stone_cheng in forum Symbian User Interface
    Replies: 2
    Last Post: 2008-06-11, 10:25
  5. phone app & long press red key
    By morost in forum Symbian
    Replies: 2
    Last Post: 2007-09-21, 07:51

Posting Permissions

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