Im pretty sure you cant override the home button no matter what you do. You
can override ever other button but that one.
On Thursday, March 1, 2012 3:52:42 AM UTC-8, soheb somani wrote:
>
> my app is alike "my remote lock with app lock" and when the screen is
> locked remotely by sending an SMS, and i have customized it such that
> in licked mode other person can make a call, so it presses a button
> and will switch to a default dialer. Now i want that when he is making
> a call he should not be able to go to home screen by pressing home
> button. So what do i do?? i have tried
> "public void onAttachedToWindow()
> {
> this.getWindow().setType(WindowManager.LayoutParams.TYPE_KEYGUARD);
> super.onAttachedToWindow();
> }"
> but this wud not work as control is with the system...
> help me disabling home key...
On Thursday, March 1, 2012 3:52:42 AM UTC-8, soheb somani wrote:
>
> my app is alike "my remote lock with app lock" and when the screen is
> locked remotely by sending an SMS, and i have customized it such that
> in licked mode other person can make a call, so it presses a button
> and will switch to a default dialer. Now i want that when he is making
> a call he should not be able to go to home screen by pressing home
> button. So what do i do?? i have tried
> "public void onAttachedToWindow()
> {
> this.getWindow().setType(WindowManager.LayoutParams.TYPE_KEYGUARD);
> super.onAttachedToWindow();
> }"
> but this wud not work as control is with the system...
> help me disabling home key...
On Thursday, March 1, 2012 3:52:42 AM UTC-8, soheb somani wrote:
>
> my app is alike "my remote lock with app lock" and when the screen is
> locked remotely by sending an SMS, and i have customized it such that
> in licked mode other person can make a call, so it presses a button
> and will switch to a default dialer. Now i want that when he is making
> a call he should not be able to go to home screen by pressing home
> button. So what do i do?? i have tried
> "public void onAttachedToWindow()
> {
> this.getWindow().setType(WindowManager.LayoutParams.TYPE_KEYGUARD);
> super.onAttachedToWindow();
> }"
> but this wud not work as control is with the system...
> help me disabling home key...
On Thursday, March 1, 2012 3:52:42 AM UTC-8, soheb somani wrote:
>
> my app is alike "my remote lock with app lock" and when the screen is
> locked remotely by sending an SMS, and i have customized it such that
> in licked mode other person can make a call, so it presses a button
> and will switch to a default dialer. Now i want that when he is making
> a call he should not be able to go to home screen by pressing home
> button. So what do i do?? i have tried
> "public void onAttachedToWindow()
> {
> this.getWindow().setType(WindowManager.LayoutParams.TYPE_KEYGUARD);
> super.onAttachedToWindow();
> }"
> but this wud not work as control is with the system...
> help me disabling home key...
--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en