title: how to intstall mcpack in minecraft programatically android
body: <p>i'm trying to send (install) my mcpack file using this code but is is not working, minecraft support this type of extenstion to install mods (.mcpack, .mcaddon, .mcworld, .mctemplate, .modpkg how we can define mimetypes for these extensions)</p>
  
  <p>please go through this image i need exactly like this <a href="https://imgur.com/14rIBvN" rel="nofollow noreferrer">https://imgur.com/14rIBvN</a>     </p>
  
  <pre><code> try {
      //File path = new File(getFilesDir(), "dl");
      File file = new File(path);
      PackageManager manager = this.getPackageManager();
      // Get URI and MIME type of file
      Intent share = new Intent(Intent.ACTION_SEND);
      //share.setType("image/jpeg");
      share.putExtra(Intent.EXTRA_STREAM, Uri.parse(path));
      share.setPackage("com.mojang.minecraftpe");//package name of the app
      startActivity(Intent.createChooser(share, "Select Minecraft to install"));
  } catch (Exception e) {
      Log.i(TAG, "App not found.. "+e.getMessage());
  }
  </code></pre>