How open a .torrent file in miutorrent programmatically

1.3k views Asked by At

In my android app i have successfully downloaded .torrent files and now i want to open them in miutorrent (or another torrent downloading app) how to implement this ?? any help would be highly appreciated....

1

There are 1 answers

0
null pointer On BEST ANSWER

Try starting an intent with mime type as 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);