title: I want to show OK and cancel button in my alert dialog?
body: <p>I want to show ok and cancel  button in my alert dialog.I tried many solutions but didnt succeede..guide me plese..thanks</p>
  
  <pre><code>AlertDialog.Builder builder = new AlertDialog.Builder(this);
              builder.setMessage("Check Your Internet Connection!! you are not connected to the Internet..");
  
              AlertDialog alert = builder.create();
                               alert.show();} 
  </code></pre>