I am making an app to detect home key of d-pad but unfortunately there is no key provided by amazon but I tried another way by using
@Override
protected void onUserLeaveHint() {
Log.e("Trend Activity", "Home Key pressed");
finishAffinity();
Log.e("Trend Activity", "Home Key pressed");
super.onUserLeaveHint();
}
but still I am getting issue when pressing long home key of d-pad. It is killing all activity it is good but I don't want to kill activity on long press. Please help me thanks in Advance.