After clicking the floating window, the three physical buttons fail:
Be sure to connect the settings like this, separated by "|".
params.flags= WindowManager.LayoutParams.FLAG_NOT_FOCUSABLE| WindowManager.LayoutParams.FLAG_NOT_TOUCH_MODAL ;
It is not possible to set this separately, it will cause only the home button to be used :
params.flags= WindowManager.LayoutParams.FLAG_NOT_FOCUSABLE; params.flags= WindowManager.LayoutParams.FLAG_NOT_TOUCH_MODAL ;