How to identify android on-screen soft buttons

I am working on an Android app. In which I have to set the image in a certain position on the screen. The problem occurs when a button similar to this picture appears on the screen!enter image description here

I searched a lot in googled but did not find any help. Is there any way to programmatically detect them on screen buttons? Thank you for your help.

+5
source share
1 answer

you can check hasPermanentMenuKeywith

boolean hasMenuKey = ViewConfiguration.get(context).hasPermanentMenuKey();

if this returns true, it means that you do not have soft keys.

API honeycomb, , API . .

, , .

Android 3.0, . . , . , . , .

+2

All Articles