try this
public boolean onKeyDown(int keyCode, KeyEvent event) {
if (keyCode == KeyEvent.KEYCODE_BACK) {
moveTaskToBack(true);
return true;
}
return super.onKeyDown(keyCode, event);
}
public void backButtonPressed(View v) {
//do this
}
--
You received this
Thanks.
I tried this , the problem is onKeyDown is never fired
On Wed, Jan 11, 2012 at 5:41 PM, Ratheesh Valamchuzhy
android...@gmail.comwrote:
try this
public boolean onKeyDown(int keyCode, KeyEvent event) {
if (keyCode == KeyEvent.KEYCODE_BACK) {
moveTaskToBack(true);
2 matches
Mail list logo