I've read the google docs on Dialogs and posts here and on Stack Overflow, but I just can't get my dialog to show.
showDialog( DIALOG_CREATEPC ); // called elsewhere private Dialog addPCDialog() { Dialog dialog = new Dialog( this ); dialog.setContentView( R.layout.party_createpc ); dialog.setTitle( "Add PC" ); ... return dialog } @Override protected Dialog onCreateDialog( int id ) { Dialog dialog; switch( id ) { case DIALOG_CREATEPC: dialog = addPCDialog(); break; default: dialog = null; } return dialog; } Am I missing something here? -- 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