如何以编程方式在 miutorrent 中打开 .torrent 文件

How open a .torrent file in miutorrent programmatically

在我的 android 应用程序中,我已经成功下载了 .torrent 文件,现在我想在 miutorrent(或其他 torrent 下载应用程序)中打开它们,如何实现?任何帮助将不胜感激....

尝试使用 application/x-bittorrent

的 MIME 类型启动意图
Intent intent = new Intent(Intent.ACTION_VIEW);
intent.setDataAndType(TorrentUri, "application/x-bittorrent");
intent.setFlags(Intent.FLAG_ACTIVITY_NO_HISTORY);
startActivity(intent);