title: How to set a default app installer program?
body: <p>I am creating an operating system that installs downloaded .apks from our servers. The issue I am having is that once downloaded I am prompted to select how I want to install the .apk. Among the options are Chrome, Browser and ESInstaller. I want to set ESInstaller as default programmatically. How can I do this?</p>
  
  <p>Here is how I am calling the Intent to install the downloaded .apk.</p>
  
  <pre><code>Intent i = new Intent(Intent.ACTION_VIEW);
                  i.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
                  i.setData(Uri.parse(appUrl));
                  startActivity(i);
  </code></pre>
  
  <p>Thank you in advance!</p>