 <p>Either call <code>dialog.show()</code>; after all the initialization and interface registration, Or to separate the dialog from your activity for making your code modular, you can do to following:</p> <ol> <li>Create a <code>class</code> extending <code>Dialog</code>.</li> <li>Create a <code>method</code> in your dialog <code>class</code> to accept the <code>OnClickListener</code> and save it at <code>class</code> level inside dialog <code>class</code>. </li> <li>From <code>activity</code> after launching that dialog call than method with your <code>activity's</code> dialog.</li> <li>In your <code>Dialog class</code> set a New <code>OnClickListener</code> on your dialog's button.</li> <li>And onclick of that button just manually give callback to <code>activity's</code> <code>OnClickListener</code>.</li> </ol> <p>Hope it helps!</p>