How to perform device back button -java client 5.0.4 and above

Hi All

How to perform device back button in android device, have tried

driver.pressKeyCode(AndroidKeyCode.BACK)
driver.navigate().back()

sendkey does not work for me
driver.sendKeyEvent(AndroidKeyCode.BACK);

can anyone please tell how to perform android device back button for android