【问题标题】:How open a .torrent file in miutorrent programmatically如何以编程方式在 miutorrent 中打开 .torrent 文件
【发布时间】:2016-07-14 18:51:48
【问题描述】:

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

【问题讨论】:

    标签: android utorrent


    【解决方案1】:

    尝试使用 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);
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2015-01-07
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多