[android-developers] Re: Show AlertDialog after back button

2009-02-10 Thread Tomasz Matyszewski
That's is great, Thanks. On Tue, Jan 13, 2009 at 7:42 PM, Andrew Stadler wrote: > > tmat- > > You might want to try this: > 1. Override your activity's onKeyDown() method. > 2. If the KeyEvent is KEYCODE_BACK, display your dialog > 3. If your dialog returns "YES", simply call Activity.fini

[android-developers] Re: Show AlertDialog after back button

2009-01-12 Thread Tomasz Matyszewski
No idea at all ?? I've tried to put dialog initialization into onPause() method but obviously it doesn't work based on Activity Lifecycle so this doesn't work: @Override protected Dialog onCreateDialog(int id) { return new AlertDialog.Builder(TimeCard.this).setIcon(R.drawable.alert_d