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
Post a Comment