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

时间:2016-03-27 11:08:22

标签: android utorrent

在我的Android应用程序中,我已成功下载.torrent文件,现在我想在miutorrent(或其他torrent下载应用程序)中打开它们如何实现这个?任何帮助都将受到高度赞赏....

1 个答案:

答案 0 :(得分:4)

尝试使用mime类型application/x-bittorrent

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