How to detect hardware back button presence in android? -


I have to detect hardware back button appearance in the Android device. Here we have different types of devices, one of which has a soft back button, the other is a hardware back button, whether there is any common method for detecting the hardware back button.

I tried the code below to detect hardware back button appearance, but it is not reliable, it is returning the truth to a tablet, which does not have a hardware back button and has soft back The button has.

  Back to the Boolean = Character Map. Device Husky (KAVE.KKCode_back);  

Please suggest me some way.


Comments

Popular posts from this blog

c# - SignalR: "Protocol error: Unknown transport." when navigating to hub -

android - how to get distance of 2 beacons and make a condtion base on that distance -

c# - WPF Expander overlay used in ItemsControl -