title: The method showDialog(int) from the type Activity is deprecated in android?
body: <p>The method <code>showDialog(int)</code> from the type <code>Activity</code> is <strong>deprecated</strong>.</p>
  
  <p><img src="https://i.stack.imgur.com/Z3KOs.png" alt="enter image description here"></p>
  
  <p>What's the reason? and how to solve it?</p>