is there a default back key(on device) listener in android???

Posted by androidbase Praveen on Stack Overflow See other posts from Stack Overflow or by androidbase Praveen
Published on 2010-04-07T11:38:07Z Indexed on 2010/04/07 11:43 UTC
Read the original article Hit count: 480

hi all,

i am having two activities A and B. when i click the button in A that will shows B. when i click the Button in B it backs to A. i had set the overridePendingTransition method after the finish() method. it works properly. but in case the current Activity is B. on that time i click the default back button in the device. it shows the right to left transition to show the Activity A. how i can listen that Default back key on device.?????

© Stack Overflow or respective owner

Related posts about android

Related posts about android-emulator