-1

I have gone through all the questions that you guys discussed here at SO but I didn't find a solution for me.

Please clarify whether we can disable the Home button or not?

I've tried the following code, but it doesn't make sense:

if (keyCode == KeyEvent.KEYCODE_HOME) {
    return true;
}

Thanks in advance.

ChuongPham
  • 4,689
  • 8
  • 42
  • 53

2 Answers2

0

You can disabled home button with the help of this, but it will disable when you have hard key - Disable home button

Hope this helps you !

Ashish Tamrakar
  • 810
  • 10
  • 24
  • Frankly, i didn't gone through the code with this. I just used the sample application there and integrated the same in my app :) – Ashish Tamrakar Nov 11 '14 at 05:10
0

Please check this link, I already given Answer of this type of question.

How to show alert dialog when hardware Home button is pressed?

Community
  • 1
  • 1
samsad
  • 1,336
  • 1
  • 10
  • 15