[android-developers] Re: Disable Home Key?

2010-03-29 Thread DroidBy
Hi HackNone, You can handle the Home Key inside the PhoneWindowManager itself. This is up to your way to handle the key there. On Mar 21, 9:18 pm, HackNone clzq...@gmail.com wrote: Hi, DroidBy. Do you solve this problem now? I also have this question. I am trying my best to solve it. --

Re: [android-developers] Re: Disable Home Key?

2010-03-29 Thread Dianne Hackborn
Since this is not talking about the SDK, please move the discussion to android-porting. Thanks. On Mon, Mar 29, 2010 at 8:22 PM, DroidBy meikeng@gmail.com wrote: Hi HackNone, You can handle the Home Key inside the PhoneWindowManager itself. This is up to your way to handle the key

[android-developers] Re: Disable Home Key?

2010-03-21 Thread HackNone
On Feb 26, 4:47 pm, Sean Hodges seanhodge...@googlemail.com wrote: there are quite a few projects on Sourceforge and Google Code. Hi, Sean Hodges. Can you tell me the name of those projects? thx:) -- You received this message because you are subscribed to the Google Groups Android

[android-developers] Re: Disable Home Key?

2010-03-21 Thread HackNone
Hi, DroidBy. Do you solve this problem now? I also have this question. I am trying my best to solve it. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe

[android-developers] Re: Disable Home Key?

2010-03-03 Thread DroidBy
Hi, I would like to implement a new policy as like Phone to handle my new application? As I would like to make use of this policy to handle the home key. But I am not sure how should I modify the PolicyConfig.mk file in order to take in my new policy. Anyone has any idea? Rgds, DroidBy On

[android-developers] Re: Disable Home Key?

2010-02-28 Thread DroidBy
Hi Sean Hodges, Thanks. Now I can view the source code. I will take a look on this. Rgds, Mandy On Feb 26, 4:47 pm, Sean Hodges seanhodge...@googlemail.com wrote: On Fri, Feb 26, 2010 at 8:17 AM, DroidBy meikeng@gmail.com wrote: I am happy that you give me a clue on this, however I am

[android-developers] Re: Disable Home Key?

2010-02-28 Thread DroidBy
Hi ZhangJun, Thanks for yor input. But I do not understand how to make my lock shows as like keyguard show. Can you provide me more details? I have take a look into the PhoneWindowManager.java code, however I meed more time to digest it. How should I make use of this PhoneWindowManager.java? Can

[android-developers] Re: Disable Home Key?

2010-02-26 Thread DroidBy
Hi Sean Hodges, I am happy that you give me a clue on this, however I am not able to open the link that you post, it will redirect me to a blank webpage. Can you repaste the link? or the main link that I can browse into the sub-pages of this? Btw, Do you have any idea on the KeyGuardManager? Can

Re: [android-developers] Re: Disable Home Key?

2010-02-26 Thread Sean Hodges
On Fri, Feb 26, 2010 at 8:17 AM, DroidBy meikeng@gmail.com wrote: I am happy that you give me a clue on this, however I am not able to open the link that you post, it will redirect me to a blank webpage. Can you repaste the link? or the main link that I can browse into the sub-pages of

Re: [android-developers] Re: Disable Home Key?

2010-02-26 Thread zhangjun
you can check code in PhoneWindowManager.java, you can disable launch Home function when your lock show same as keyguard show On Fri, 2010-02-26 at 00:17 -0800, DroidBy wrote: Hi Sean Hodges, I am happy that you give me a clue on this, however I am not able to open the link that you post,

[android-developers] Re: disable HOME key and right soft key

2009-08-24 Thread Dimitar Dimitrov
@Mark Murphy, I think by right soft key, he meant the BACK button. You can disable the BACK button, but I too think that you can't do the same for the HOME button. With the code you have posted, you disable default key handling for all buttons, except HOME (not possible, AFAIK) and BACK

[android-developers] Re: disable HOME key and right soft key

2009-08-24 Thread Dianne Hackborn
Fyi-- this setting is left over from decisions about the behavior we wanted for 1.0, and is no longer used. Don't count on any of the settings doing what they say, or any of this staying around in the future. (I realize this got left in the public SDK. Ooops. It shouldn't have been.) On Sun,

[android-developers] Re: disable HOME key and right soft key

2009-08-23 Thread Shang Hao
Hi Mark, Thanks for your reply.. I actually meant the home key and the End call button on the device. For home key i have found a solution at PhoneWindowManager.java @framework Any idea about the End call button?? Thanks. On Aug 22, 4:03 am, Mark Murphy mmur...@commonsware.com wrote:

[android-developers] Re: disable HOME key and right soft key

2009-08-23 Thread Romain Guy
You cannot disabled these keys from an application. On Sun, Aug 23, 2009 at 6:53 PM, Shang Haosahilz...@gmail.com wrote: Hi Mark, Thanks for your reply.. I actually meant the home key and the End call button on the device. For home key i have found a solution at PhoneWindowManager.java

[android-developers] Re: disable HOME key and right soft key

2009-08-23 Thread Hristo Yordanov
Please unsubscribe me! --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to

[android-developers] Re: disable HOME key and right soft key

2009-08-23 Thread Dan Sherman
Please read the signature at the bottom of every message explaining how to unsubscribe! On Sun, Aug 23, 2009 at 10:02 PM, Hristo Yordanov me4ta...@gmail.comwrote: Please unsubscribe me! --~--~-~--~~~---~--~~ You received this message because you are

[android-developers] Re: disable HOME key and right soft key

2009-08-23 Thread Shang Hao
Hi Roman, Accepted that I cannot play around with these keys from apps...But there must be a way somewhere where they must be getting handledi just need to broadcast and make these keys handling ineffective/ effective Can u help me with the files which i should be looking for

[android-developers] Re: disable HOME key and right soft key

2009-08-23 Thread Dianne Hackborn
You already said it, PhoneWindowManager is what handles the keys. On Sun, Aug 23, 2009 at 9:53 PM, Shang Hao sahilz...@gmail.com wrote: Hi Roman, Accepted that I cannot play around with these keys from apps...But there must be a way somewhere where they must be getting handledi just

[android-developers] Re: disable HOME key and right soft key

2009-08-23 Thread Keiji Ariyama
Hi Shang, You can use END_BUTTON_BEHAVIOR setting in Settings.System. Android Developers http://developer.android.com/reference/android/provider/Settings.System.html#END_BUTTON_BEHAVIOR What happens when the user presses the end call button if they're not on a call. Values: 0 - The end button

[android-developers] Re: disable HOME key and right soft key

2009-08-22 Thread Mark Murphy
Shang Hao wrote: Hi, dis I m making a test application and want to able all keys excluding the back button.. Using below code i am not able to disable HOME key and right soft key. Please suggest what to do. @Override public boolean onKeyDown(int keyCode, KeyEvent