You Are Here:

Community: Developer Discussion Boards

#1 Old Enabling/Disabling red key - How ? - 2009-03-10, 15:38

Join Date: Jan 2009
Posts: 33
soontobeared
Offline
Registered User
Hi,
How can I enable/disable the red key ?
Reply With Quote

#2 Old Re: Enabling/Disabling red key - How ? - 2009-03-10, 17:14

Join Date: Jun 2008
Posts: 45
maclun123
Offline
Registered User
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
Reply With Quote

#3 Old Re: Enabling/Disabling red key - How ? - 2009-03-10, 19:50

Join Date: Jan 2009
Posts: 33
soontobeared
Offline
Registered User
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.
Reply With Quote

#4 Old Re: Enabling/Disabling red key - How ? - 2009-03-10, 19:59

Join Date: Oct 2007
Posts: 2,845
Location: Deva, Romania
bogdan.galiceanu's Avatar
bogdan.galiceanu
Offline
Forum Nokia Champion
From the PyS60 Library Reference:
Quote:
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.
Reply With Quote

#5 Old Re: Enabling/Disabling red key - How ? - 2009-03-10, 20:26

Join Date: Jan 2009
Posts: 33
soontobeared
Offline
Registered User
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.
Reply With Quote

#6 Old Re: Enabling/Disabling red key - How ? - 2009-03-10, 20:30

Join Date: Oct 2007
Posts: 2,845
Location: Deva, Romania
bogdan.galiceanu's Avatar
bogdan.galiceanu
Offline
Forum Nokia Champion
Those applications were most probably written in Symbian C++. And I remember trying keycapture with the red key and it didn't work.
Reply With Quote

#7 Old Re: Enabling/Disabling red key - How ? - 2009-03-10, 20:43

Join Date: Jan 2009
Posts: 33
soontobeared
Offline
Registered User
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.
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
Trick to prevent Python from closing on red key press. y.a.k Python 19 2009-07-28 15:16
Change red end key behave for my VOIP app shallowayalan General Symbian C++ 5 2009-03-10 10:08
Call Hangup using Red Key apus29 General Symbian C++ 4 2008-09-16 07:49
The RED key handling on S60 MR stone_cheng Symbian User Interface 2 2008-06-11 11:25
phone app & long press red key morost General Symbian C++ 2 2007-09-21 08:51

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