Starting with Android 2.0 you also need to implement onBackPressed() in
order to achieve this...
http://developer.android.com/reference/android/app/Activity.html#onBackPressed%28%29

Thanks,
Justin Anderson
MagouyaWare Developer
http://sites.google.com/site/magouyaware


On Thu, Mar 10, 2011 at 2:36 PM, TreKing <treking...@gmail.com> wrote:

> On Thu, Mar 10, 2011 at 1:54 PM, Colin <colin...@gmail.com> wrote:
>
>>  return super.onKeyDown(keyCode, event);
>
>
> The "super" method likely executes the default action for the given key
> press.
> The default action on the back key is to call finish() on the activity.
>
>
> -------------------------------------------------------------------------------------------------
> TreKing <http://sites.google.com/site/rezmobileapps/treking> - Chicago
> transit tracking app for Android-powered devices
>
>  --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, send email to
> android-developers+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en
>

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to