Call the hardware back button programmatically?
Just call this.onBackPressed();
in Activity.
You can send the back button press to the system like this
this.dispatchKeyEvent(new KeyEvent(KeyEvent.ACTION_DOWN, KeyEvent.KEYCODE_BACK));
Or you can override the back button press and call
finish();
on your Activity. That basically does the same thing as the generic back button.