On Tue, Feb 22, 2011 at 9:36 AM, Jonas Petersson <[email protected]> wrote: > 2011-02-22 14:51, Mark Murphy skrev: >> >> I had forgotten about that, sorry. However, have you tried that with >> BACK, particularly since 2.0? > > Um, isn't onCancelListener() what you are after. Works fine for me. > http://developer.android.com/intl/zh-CN/reference/android/app/AlertDialog.Builder.html#setOnCancelListener(android.content.DialogInterface.OnCancelListener) > > See also setCancelable().
That was the point of my "Why?" question in my original reply. I don't know why the OP feels that he needs to override onBackPressed(). -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy _The Busy Coder's Guide to Android Development_ Version 3.4 Available! -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en

