how to show a custom dialog box when an activity start
<p>I  want to show a custom dialog box when I start my first activity <strong>without using a button</strong>. I try to search but I'm not finding the proper solution what I really want to do. Many of them are using onClick Listener to achieve that the scenario. Below image is showing an activity with a dialog box, that's what I'm looking for but without using onClick Listener.</p>

<p><a href="https://i.stack.imgur.com/51Xzwl.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/51Xzwl.png" alt="enter image description here"></a></p>

<p>How can we implement <strong>without using onClick Listener</strong>?</p>