Sunday 29 July 2018

android - How to block "Google Search" appearing when long pressed HOME key?

I'm developing a Home screen application for android. But when the HOME key is long pressed "Google Now" search always appears - I want to avoid that. I found that the android framework does not give a HOME key press event out to application level.




Since this is a home screen app I can detect HOME key short press, but not the long press.
So how can I block/disable this system search activity coming up when HOME key is long pressed?

No comments:

Post a Comment

php - file_get_contents shows unexpected output while reading a file

I want to output an inline jpg image as a base64 encoded string, however when I do this : $contents = file_get_contents($filename); print &q...