title: How to write the code for Clear Email Client settings in android?
body: <p><img src="https://i.stack.imgur.com/OJHom.png" alt="enter image description here">I am working on chat related application in this application share the information to email default any mail client its working fine ,in this application i am adding settings in settings one option is adding "Clear Email Client settings"  suppose click on this again show the dialog for default choose mail option .
  How to clear the email settings in android ?please send me any solution.</p>
  
  <pre><code>Intent i = new Intent(Intent.ACTION_SEND); 
          i.setType("text/html"); 
          i.putExtra(Intent.EXTRA_SUBJECT, "Mail from Mobile Application"); 
  
          String emailbody="";
  
          emailbody=String.format("&lt;html&gt;"+
                  "&lt;head&gt;"+
                  "&lt;meta name='viewport' content='width=device-width; initial-scale=1.0; maximum-scale=2.0;'&gt;"+
                  "&lt;/head&gt;"+
                  "&lt;body&gt; " +
                  "&lt;b&gt;Reference : &lt;/b&gt; %s"+"&lt;br&gt;&lt;br&gt;" +
                  "&lt;/body&gt;"+
                  "&lt;/html&gt;",
                  s_ref);
  
          i.putExtra(Intent.EXTRA_TEXT,Html.fromHtml(emailbody));
  
          try { 
              startActivity(Intent.createChooser(i, "Send mail...")); 
          } catch (android.content.ActivityNotFoundException ex) { 
              Toast.makeText(this, "There are no email clients installed.", Toast.LENGTH_SHORT).show(); 
          }
  </code></pre>