How to disable device home button in android

81 Views Asked by At

I want to disable device home button when my app run or my screen display Check the attached video link. Reference video, that is what i want

Thanks

I wrote simple code in which my activity overrides the

onKeyDown() 

and return true for all key presses. Does any one have any idea?

1

There are 1 best solutions below

1
Jaydip Ramani On

Use getActionBar().setDisplayHomeAsUpEnabled(false) to remove the home button from the action bar.