views:

97

answers:

2

Hi i have a form button in the form,which i need to perform basic action performed by the back button in the android emulator. I know the key even is KeyEvent.KEYCODE_BACK

how to assign this to my button. thanks in advance.

A: 

The question isn't totally clear, but you probably just want to call finish() when your Button is clicked.

Christopher
A: 

i found the solution to it. call the fuction moveTaskToBack(true); to get back to previois task.

Janardhanan.S